This commit was manufactured by cvs2svn to create tag 'buildscript'.
[IRC.git] / Robust / src / ClassLibrary / FileInputStream.java
diff --git a/Robust/src/ClassLibrary/FileInputStream.java b/Robust/src/ClassLibrary/FileInputStream.java
deleted file mode 100644 (file)
index 11bb6e4..0000000
+++ /dev/null
@@ -1,34 +0,0 @@
-public class FileInputStream extends InputStream {
-    private int fd;
-
-    public FileInputStream(String pathname) {
-       fd=nativeOpen(pathname.getBytes());
-    }
-
-    public FileInputStream(File path) {
-       fd=nativeOpen(path.getPath().getBytes());
-    }
-    public int getfd() {
-       return fd;
-    }
-
-    private static native int nativeOpen(byte[] filename);
-    private static native int nativeRead(int fd, byte[] array, int numBytes);
-    private static native void nativeClose(int fd);
-    
-    public int read() {
-       byte b[]=new byte[1];
-       int retval=read(b);
-       if (retval==-1)
-           return -1;
-       return b[0];
-    }
-
-    public int read(byte[] b) {
-       return nativeRead(fd, b, b.length);
-    }
-
-    public void close() {
-       nativeClose(fd);
-    }
-}