1 19 24 25 package org.netbeans.core.output2; 26 27 import java.io.IOException ; 28 import java.nio.ByteBuffer ; 29 30 36 interface Storage { 37 46 public ByteBuffer getReadBuffer (int start, int length) throws IOException ; 47 56 public ByteBuffer getWriteBuffer (int length) throws IOException ; 57 67 public int write (ByteBuffer buf, boolean addNewLine) throws IOException ; 68 69 74 public void dispose (); 75 76 81 public int size(); 82 83 88 public void flush() throws IOException ; 89 90 97 public void close() throws IOException ; 98 99 105 public boolean isClosed(); 106 } 107 | Popular Tags |