1 19 20 package org.netbeans.editor.ext; 21 22 import java.io.IOException ; 23 24 29 public interface DataAccessor { 30 31 34 public void open(boolean requestWrite) throws IOException ; 35 36 37 public void close() throws IOException ; 38 39 44 public void read(byte buffer[], int off, int len) throws IOException ; 45 46 53 public void append(byte buffer[], int off, int len) throws IOException ; 54 55 61 public long getFilePointer() throws IOException ; 62 63 64 public void resetFile() throws IOException ; 65 66 70 public void seek(long pos) throws IOException ; 71 72 public int getFileLength(); 73 } 74 75 | Popular Tags |