net.noderunner.amazon.s3.emulator
Class Writer

java.lang.Object
  extended by net.noderunner.amazon.s3.emulator.Writer

public class Writer
extends Object

Outputs XML. Not thread safe.

Author:
Elias Ross

Constructor Summary
Writer()
           
 
Method Summary
 Writer end()
          Ends an XML tag.
 Writer start(String tag)
          Starts an XML tag.
 String toString()
          Converts to a string.
 Writer write(Date lastModified)
          Writes an ISO801 date.
 Writer write(long size)
          Writes a Long value.
 Writer write(String s)
          Writes character data.
 Writer write(Writer w)
          Writes to a writer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Writer

public Writer()
Method Detail

start

public Writer start(String tag)
Starts an XML tag.


end

public Writer end()
Ends an XML tag.


write

public Writer write(String s)
Writes character data.


write

public Writer write(Writer w)
Writes to a writer.


toString

public String toString()
Converts to a string.

Overrides:
toString in class Object

write

public Writer write(Date lastModified)
Writes an ISO801 date.


write

public Writer write(long size)
Writes a Long value.



Copyright © 2011. All Rights Reserved.