1 public class FileInputStream {
4 public FileInputStream(String pathname) {
5 fd=nativeOpen(pathname.getBytes());
8 private static native int nativeOpen(byte[] filename);
9 private static native int nativeRead(int fd, byte[] array, int numBytes);
10 private static native void nativeClose(int fd);
20 public int read(byte[] b) {
21 return nativeRead(fd, b, b.length);