Package nom.tam.util
Interface RandomAccess
-
- All Superinterfaces:
ArrayDataInput
,java.lang.AutoCloseable
,java.io.Closeable
,java.io.DataInput
,FitsIO
- All Known Implementing Classes:
BufferedFile
public interface RandomAccess extends ArrayDataInput
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 nom.tam.util.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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description long
getFilePointer()
void
seek(long offsetFromStart)
Move to a specified location in the stream.-
Methods inherited from interface nom.tam.util.ArrayDataInput
mark, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, readArray, readFully, readLArray, reset, skip, skipAllBytes, skipAllBytes
-
-
-
-
Method Detail
-
getFilePointer
long getFilePointer()
- Returns:
- the current position in the stream.
-
seek
void seek(long offsetFromStart) throws java.io.IOException
Move to a specified location in the stream.- Parameters:
offsetFromStart
- set the offset messured from the start- Throws:
java.io.IOException
- if the operation fails
-
-