mirror of
https://github.com/corda/corda.git
synced 2025-06-13 04:38:19 +00:00
quick sketch of java/io/*
This commit is contained in:
15
classpath/java/io/FileInputStream.java
Normal file
15
classpath/java/io/FileInputStream.java
Normal file
@ -0,0 +1,15 @@
|
||||
package java.io;
|
||||
|
||||
public class FileInputStream extends InputStream {
|
||||
private final FileDescriptor fd;
|
||||
|
||||
public FileInputStream(FileDescriptor fd) {
|
||||
this.fd = fd;
|
||||
}
|
||||
|
||||
public native int read() throws IOException;
|
||||
|
||||
public native int read(byte[] b, int offset, int length) throws IOException;
|
||||
|
||||
public native void close() throws IOException;
|
||||
}
|
Reference in New Issue
Block a user