mirror of
https://github.com/corda/corda.git
synced 2025-06-13 12:48:18 +00:00
more classpath progress
This commit is contained in:
19
classpath/java/io/Writer.java
Normal file
19
classpath/java/io/Writer.java
Normal file
@ -0,0 +1,19 @@
|
||||
package java.io;
|
||||
|
||||
public abstract class Writer {
|
||||
public void write(int c) throws IOException {
|
||||
char[] buffer = new char[] { (char) c };
|
||||
write(buffer);
|
||||
}
|
||||
|
||||
public void write(char[] buffer) throws IOException {
|
||||
write(buffer, 0, buffer.length);
|
||||
}
|
||||
|
||||
public abstract void write(char[] buffer, int offset, int length)
|
||||
throws IOException;
|
||||
|
||||
public abstract void flush() throws IOException;
|
||||
|
||||
public abstract void close() throws IOException;
|
||||
}
|
Reference in New Issue
Block a user