cz.cuni.amis.utils
Class StringOutputStream
java.lang.Object
java.io.OutputStream
cz.cuni.amis.utils.StringOutputStream
- All Implemented Interfaces:
- Closeable, Flushable, Serializable
public class StringOutputStream
- extends OutputStream
- implements Serializable
OutputStream for the String, writes to StringBuffer.
Based on: http://kickjava.com/src/jodd/util/StringOutputStream.java.htm
Thank you!
- See Also:
- Serialized Form
Constructor Summary |
StringOutputStream()
Creates new StringOutputStream, makes a new internal StringBuffer. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StringOutputStream
public StringOutputStream()
- Creates new StringOutputStream, makes a new internal StringBuffer.
getString
public String getString()
- Returns string from the underlying buffer
- Returns:
close
public void close()
- Specified by:
close
in interface Closeable
- Overrides:
close
in class OutputStream
write
public void write(byte[] b)
- Overrides:
write
in class OutputStream
write
public void write(byte[] b,
int off,
int len)
- Overrides:
write
in class OutputStream
write
public void write(int b)
- Specified by:
write
in class OutputStream
Copyright © 2013 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.