org.openqa.jetty.util
Class StringBufferWriter

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

public class StringBufferWriter
extends Writer

A Writer to a StringBuffer.

Version:
$Id: StringBufferWriter.java,v 1.4 2004/05/09 20:33:04 gregwilkins Exp $
Author:
Greg Wilkins (gregw)

Field Summary
 
Fields inherited from class java.io.Writer
lock
 
Constructor Summary
StringBufferWriter()
          Constructor.
StringBufferWriter(StringBuffer buffer)
          Constructor.
 
Method Summary
 void close()
           
 void flush()
           
 StringBuffer getStringBuffer()
           
 void reset()
           
 void setStringBuffer(StringBuffer buffer)
           
 void write(char c)
           
 void write(char[] ca)
           
 void write(char[] ca, int offset, int length)
           
 void write(String s)
           
 void write(String s, 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.


StringBufferWriter

public StringBufferWriter(StringBuffer buffer)
Constructor.

Parameters:
buffer -
Method Detail

setStringBuffer

public void setStringBuffer(StringBuffer buffer)

getStringBuffer

public StringBuffer getStringBuffer()

write

public void write(char c)
           throws IOException
Throws:
IOException

write

public void write(char[] ca)
           throws IOException
Overrides:
write in class Writer
Throws:
IOException

write

public void write(char[] ca,
                  int offset,
                  int length)
           throws IOException
Specified by:
write in class Writer
Throws:
IOException

write

public void write(String s)
           throws IOException
Overrides:
write in class Writer
Throws:
IOException

write

public void write(String s,
                  int offset,
                  int length)
           throws IOException
Overrides:
write in class Writer
Throws:
IOException

flush

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

reset

public void reset()

close

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


Copyright © 2012. All Rights Reserved.