mirror of
https://github.com/corda/corda.git
synced 2025-06-13 04:38:19 +00:00
more classpath progress
This commit is contained in:
17
classpath/java/io/StringWriter.java
Normal file
17
classpath/java/io/StringWriter.java
Normal file
@ -0,0 +1,17 @@
|
||||
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(new String(b, offset, length));
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return out.toString();
|
||||
}
|
||||
|
||||
public void flush() throws IOException { }
|
||||
|
||||
public void close() throws IOException { }
|
||||
}
|
Reference in New Issue
Block a user