1 21 22 package org.apache.derby.impl.store.raw.data; 23 24 import org.apache.derby.iapi.services.sanity.SanityManager; 25 26 import java.io.IOException ; 27 import java.io.InputStream ; 28 import java.io.OutputStream ; 29 import java.util.Vector ; 30 31 37 public interface ByteHolder 38 { 39 44 public void write(int b) 45 throws IOException ; 46 51 public void write(byte[] data, int offset, int len) 52 throws IOException ; 53 54 63 public long write(InputStream in, long count) 64 throws IOException ; 65 66 71 public void clear() 72 throws IOException ; 73 74 82 public void startReading() 83 throws IOException ; 84 85 92 public int read() 93 throws IOException ; 94 95 104 public int read(byte b[], 105 int off, 106 int len) 107 throws IOException ; 108 109 120 public int read(OutputStream out, 121 int len) 122 throws IOException ; 123 124 127 public int shiftToFront() 128 throws IOException ; 129 130 134 public int available() 135 throws IOException ; 136 137 142 public int numBytesSaved() 143 throws IOException ; 144 145 148 public long skip(long count) 149 throws IOException ; 150 151 154 public boolean writingMode(); 155 } 156 | Popular Tags |