All Packages Class Hierarchy This Package Previous Next Index
Class sdsu.io.StringOutputStream
java.lang.Object
|
+----java.io.OutputStream
|
+----sdsu.io.StringOutputStream
- public class StringOutputStream
- extends OutputStream
An output stream that collects it output in a stringbuffer, which can be used
to create a string.
- Version:
- 1.0 28 November 1997
- Author:
- Roger Whitney
(whitney@cs.sdsu.edu)
- See Also:
- StringWriter
-
StringOutputStream()
- Create a new StringOutputStream with the default initial buffer size.
-
StringOutputStream(int)
- Create a new StringOutputStream with the specified initial buffer size.
-
close()
- Close the stream
-
flush()
-
Flush the stream
-
getBuffer()
- Return the stringbuffer
-
toString()
- Return the output as a String.
-
write(int)
- Write a single character.
StringOutputStream
public StringOutputStream()
- Create a new StringOutputStream with the default initial buffer size.
StringOutputStream
public StringOutputStream(int initialBufferSize)
- Create a new StringOutputStream with the specified initial buffer size.
close
public void close()
- Close the stream
- Overrides:
- close in class OutputStream
flush
public void flush()
- Flush the stream
- Overrides:
- flush in class OutputStream
getBuffer
public StringBuffer getBuffer()
- Return the stringbuffer
toString
public String toString()
- Return the output as a String.
- Overrides:
- toString in class Object
write
public void write(int outputChar)
- Write a single character. Ignores end of file.
- Overrides:
- write in class OutputStream
All Packages Class Hierarchy This Package Previous Next Index