org.apache.wicket.util.io
Class StringBufferWriter

java.lang.Object
  extended by java.io.Writer
      extended by org.apache.wicket.util.io.StringBufferWriter
All Implemented Interfaces:
Closeable, Flushable, Appendable

public class StringBufferWriter
extends Writer

Author:
jcompagner

Field Summary
 
Fields inherited from class java.io.Writer
lock
 
Constructor Summary
StringBufferWriter()
          Constructor
 
Method Summary
 void close()
           
 void flush()
           
 AppendingStringBuffer getStringBuffer()
           
 void reset()
          resets the buffer.
 void setStringBuffer(AppendingStringBuffer buffer)
           
 void write(char ch)
          Writers the char to the buffer
 void write(char[] charArray)
           
 void write(char[] charArray, int offset, int length)
           
 void write(String string)
           
 void write(String string, int offset, int length)
           
 
Methods inherited from class java.io.Writer
append, append, append, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringBufferWriter

public StringBufferWriter()
Constructor

Method Detail

getStringBuffer

public AppendingStringBuffer getStringBuffer()
Returns:
The AppendingStringBuffer with the written data

setStringBuffer

public void setStringBuffer(AppendingStringBuffer buffer)
Parameters:
buffer -

write

public void write(char ch)
Writers the char to the buffer

Parameters:
ch -

write

public void write(char[] charArray)
Overrides:
write in class Writer
See Also:
Writer.write(char[])

write

public void write(char[] charArray,
                  int offset,
                  int length)
Specified by:
write in class Writer
See Also:
Writer.write(char[], int, int)

write

public void write(String string)
Overrides:
write in class Writer
See Also:
Writer.write(java.lang.String)

write

public void write(String string,
                  int offset,
                  int length)
Overrides:
write in class Writer
See Also:
Writer.write(java.lang.String, int, int)

flush

public void flush()
Specified by:
flush in interface Flushable
Specified by:
flush in class Writer
See Also:
Writer.flush()

reset

public void reset()
resets the buffer.


close

public void close()
Specified by:
close in interface Closeable
Specified by:
close in class Writer
See Also:
Writer.close()


Copyright © 2004-2011 Apache Software Foundation. All Rights Reserved.