org.mortbay.util
Class StringBufferWriter
java.lang.Object
|
+--java.io.Writer
|
+--org.mortbay.util.StringBufferWriter
- public class StringBufferWriter
- extends java.io.Writer
A Writer to a StringBuffer.
- Version:
- $Id: StringBufferWriter.java,v 1.3 2002/12/14 13:03:07 bretts Exp $
- Author:
- Greg Wilkins (gregw)
Methods inherited from class java.io.Writer |
write |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StringBufferWriter
public StringBufferWriter()
- Constructor.
StringBufferWriter
public StringBufferWriter(java.lang.StringBuffer buffer)
- Constructor.
- Parameters:
buffer
-
setStringBuffer
public void setStringBuffer(java.lang.StringBuffer buffer)
getStringBuffer
public java.lang.StringBuffer getStringBuffer()
write
public void write(char c)
throws java.io.IOException
java.io.IOException
write
public void write(char[] ca)
throws java.io.IOException
- Overrides:
write
in class java.io.Writer
java.io.IOException
write
public void write(char[] ca,
int offset,
int length)
throws java.io.IOException
- Specified by:
write
in class java.io.Writer
java.io.IOException
write
public void write(java.lang.String s)
throws java.io.IOException
- Overrides:
write
in class java.io.Writer
java.io.IOException
write
public void write(java.lang.String s,
int offset,
int length)
throws java.io.IOException
- Overrides:
write
in class java.io.Writer
java.io.IOException
flush
public void flush()
- Specified by:
flush
in class java.io.Writer
reset
public void reset()
close
public void close()
- Specified by:
close
in class java.io.Writer
Copyright ? 2000 Mortbay Consulting Pty. Ltd. All Rights Reserved.