mirror of
https://github.com/corda/corda.git
synced 2025-01-08 14:03:06 +00:00
20 lines
462 B
Java
20 lines
462 B
Java
|
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;
|
||
|
}
|