1 32 package com.imagero.uio; 33 34 import java.io.DataInput ; 35 import java.io.IOException ; 36 37 46 public interface RandomAccessRO extends Input, DataInput { 47 final int BIG_ENDIAN = 0x4D4D; 48 final int LITTLE_ENDIAN = 0x4949; 49 50 58 long getFilePointer() throws IOException ; 59 60 67 long length() throws IOException ; 68 69 76 void seek(long offset) throws IOException ; 77 78 86 int getByteOrder(); 87 88 97 void setByteOrder(int byteOrder) throws IOException ; 98 99 106 void readFully(short[] dest) throws IOException ; 107 108 116 void readFully(short[] dest, int byteOrder) throws IOException ; 117 118 127 void readFully(short[] dest, int destOffset, int len) throws IOException ; 128 129 139 void readFully(short[] dest, int destOffset, int len, int byteOrder) throws IOException ; 140 141 148 void readFully(char[] dest) throws IOException ; 149 150 158 void readFully(char[] dest, int byteOrder) throws IOException ; 159 160 169 void readFully(char[] dest, int destOffset, int len) throws IOException ; 170 171 181 void readFully(char[] dest, int destOffset, int len, int byteOrder) throws IOException ; 182 183 190 void readFully(int[] dest) throws IOException ; 191 192 200 void readFully(int[] dest, int byteOrder) throws IOException ; 201 202 211 void readFully(int[] dest, int destOffset, int len) throws IOException ; 212 213 223 void readFully(int[] dest, int destOffset, int len, int byteOrder) throws IOException ; 224 225 232 void readFully(long[] dest) throws IOException ; 233 234 242 void readFully(long[] dest, int byteOrder) throws IOException ; 243 244 253 void readFully(long[] dest, int destOffset, int len) throws IOException ; 254 255 265 void readFully(long[] dest, int destOffset, int len, int byteOrder) throws IOException ; 266 267 274 void readFully(float[] dest) throws IOException ; 275 276 284 void readFully(float[] dest, int byteOrder) throws IOException ; 285 286 295 void readFully(float[] dest, int destOffset, int len) throws IOException ; 296 297 307 void readFully(float[] dest, int destOffset, int len, int byteOrder) throws IOException ; 308 309 316 void readFully(double[] dest) throws IOException ; 317 318 326 void readFully(double[] dest, int byteOrder) throws IOException ; 327 328 337 void readFully(double[] dest, int destOffset, int len) throws IOException ; 338 339 349 void readFully(double[] dest, int destOffset, int len, int byteOrder) throws IOException ; 350 351 355 byte [] readByteLine() throws IOException ; 356 } 357 | Popular Tags |