org.openqa.jetty.util
Class StringBufferWriter
java.lang.Object
java.io.Writer
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)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StringBufferWriter
public StringBufferWriter()
- Constructor.
StringBufferWriter
public StringBufferWriter(StringBuffer buffer)
- Constructor.
- Parameters:
buffer
-
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.