Interface RandomAccess
- All Superinterfaces:
ArrayDataInput, AutoCloseable, Closeable, DataInput, FitsIO
- All Known Implementing Classes:
BufferedFile
These packages define the methods which indicate that an i/o stream may be
accessed in arbitrary order. The method signatures are taken from
RandomAccessFile though that class does not implement this interface.
-
Field Summary
Fields inherited from interface FitsIO
BITS_OF_1_BYTE, BITS_OF_2_BYTES, BITS_OF_3_BYTES, BITS_OF_4_BYTES, BITS_OF_5_BYTES, BITS_OF_6_BYTES, BITS_OF_7_BYTES, BYTE_1_OF_LONG_MASK, BYTE_2_OF_LONG_MASK, BYTE_3_OF_LONG_MASK, BYTE_4_OF_LONG_MASK, BYTE_MASK, BYTES_IN_BOOLEAN, BYTES_IN_BYTE, BYTES_IN_CHAR, BYTES_IN_DOUBLE, BYTES_IN_FLOAT, BYTES_IN_INTEGER, BYTES_IN_LONG, BYTES_IN_SHORT, DEFAULT_BUFFER_SIZE, HIGH_INTEGER_MASK, INTEGER_MASK, SHORT_MASK, SHORT_OF_LONG_MASK -
Method Summary
Modifier and TypeMethodDescriptionlongvoidseek(long offsetFromStart) Move to a specified location in the stream.Methods inherited from interface ArrayDataInput
mark, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, readArray, readFully, readLArray, reset, skip, skipAllBytes, skipAllBytesMethods inherited from interface DataInput
readBoolean, readByte, readChar, readDouble, readFloat, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, skipBytes
-
Method Details
-
getFilePointer
long getFilePointer()- Returns:
- the current position in the stream.
-
seek
Move to a specified location in the stream.- Parameters:
offsetFromStart- set the offset messured from the start- Throws:
IOException- if the operation fails
-