1 6 21 22 package de.schlichtherle.io.rof; 23 24 import java.io.IOException ; 25 26 33 public interface ReadOnlyFile { 34 35 long length() throws IOException ; 36 37 long getFilePointer() throws IOException ; 38 39 54 void seek(long pos) throws IOException ; 55 56 int read() throws IOException ; 57 58 int read(byte[] b) throws IOException ; 59 60 74 int read(byte[] b, int off, int len) throws IOException ; 75 76 void readFully(byte[] b) throws IOException ; 77 78 void readFully(byte[] b, int off, int len) throws IOException ; 79 80 int skipBytes(int n) throws IOException ; 81 82 void close() throws IOException ; 83 } 84 | Popular Tags |