corda/classpath/java/io/StringWriter.java
2007-07-28 20:15:45 -06:00

18 lines
390 B
Java

package java.io;
public class StringWriter extends Writer {
private final StringBuilder out = new StringBuilder();
public void write(char[] b, int offset, int length) throws IOException {
out.append(b, offset, length);
}
public String toString() {
return out.toString();
}
public void flush() throws IOException { }
public void close() throws IOException { }
}