mirror of
https://github.com/corda/corda.git
synced 2025-01-06 05:04:20 +00:00
18 lines
390 B
Java
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 { }
|
|
}
|