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