Class BufferedDataInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
java.io.BufferedInputStream
nom.tam.util.ArrayInputStream
nom.tam.util.FitsInputStream
nom.tam.util.BufferedDataInputStream
- All Implemented Interfaces:
Closeable, DataInput, AutoCloseable, ArrayDataInput, FitsIO, InputReader
Deprecated.
-
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_MASKModifier and TypeFieldDescriptionstatic final intnumber of bits in one byte.static final intnumber of bits in two byte.static final intnumber of bits in three byte.static final intnumber of bits in four byte.static final intnumber of bits in five byte.static final intnumber of bits in six byte.static final intnumber of bits in seven byte.static final longbit mask to get the lowest byte of a long.static final longbit mask to get the second lowest byte of a long.static final longbit mask to get the third lowest byte of a long.static final longbit mask to get the fourth lowest byte of a long.static final intbit mask to get the lowest byte from an integer.static final intnumber of bytes occupied by a boolean.static final intnumber of bytes occupied by a byte.static final intnumber of bytes occupied by a char.static final intnumber of bytes occupied by a double.static final intnumber of bytes occupied by a float.static final intnumber of bytes occupied by a integer.static final intnumber of bytes occupied by a long.static final intnumber of bytes occupied by a short.static final intdefault buffer size to use unless specified otherwise.static final longbit mask to get the highest integer from an long.static final longbit mask to get the lowest integer from an long.static final intbit mask to get the lowest short of a integer.static final longbit mask to get the lowest short of a long. -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.BufferedDataInputStream(InputStream i, int bufLength) Deprecated. -
Method Summary
Methods inherited from class FitsInputStream
nextChecksum, read, read, read, read, read, read, read, read, read, read, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readPrimitiveArray, readShort, readUnsignedByte, readUnsignedShort, readUTF, skip, skipAllBytes, skipBytes, toStringModifier and TypeMethodDescriptionfinal long(for internal use) Returns the aggregated checksum for this stream since the last call to this method, or else since instantiation.intread()Reads a byte.intread(boolean[] b, int start, int length) Read a segment of an array of boolean's.intread(byte[] b, int from, int len) Reads up to the specified number of bytes into a buffer.intread(char[] c, int start, int length) Read a segment of an array of char's.intread(double[] d, int start, int length) Read a segment of an array of double's.intread(float[] f, int start, int length) Read a segment of an array of float's.intread(int[] i, int start, int length) Read a segment of an array of int's.intread(long[] l, int start, int length) Read a segment of an array of long's.intread(short[] s, int start, int length) Read a segment of an array of short's.intReads into an array of booleans, possibly including legalnullvalues.booleanbytereadByte()charreadChar()doublefloatvoidreadFully(byte[] b) voidreadFully(byte[] b, int off, int len) intreadInt()final StringreadLine()longreadLong()final intDeprecated.useArrayInputStream.readLArray(Object)insteadshortintintreadUTF()longskip(long n) Skip the number of bytes.voidskipAllBytes(long toSkip) Skips a number of bytes from the input.intskipBytes(int n) toString()Methods inherited from class ArrayInputStream
readArrayFully, readImage, readLArrayModifier and TypeMethodDescriptionvoidSeeArrayDataInput.readArrayFully(Object)for a contract of this method.voidLikeArrayInputStream.readArrayFully(Object)but strictly for numerical types only.longreadLArray(Object o) SeeArrayDataInput.readLArray(Object)for a contract of this method.Methods inherited from class BufferedInputStream
available, close, mark, markSupported, reset, transferToMethods inherited from class FilterInputStream
readMethods inherited from class InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytesMethods inherited from interface ArrayDataInput
mark, markSupported, read, read, read, read, read, read, read, read, read, readArray, readArrayFully, readImage, readLArray, reset, skipAllBytesModifier and TypeMethodDescriptionvoidmark(int readlimit) See the general contract of themarkmethod ofInputStream.default booleanSee the general contract of themarkSupportedmethod ofInputStream.default intread(boolean[] buf) Read an array of boolean's.intread(byte[] buf) Read an array of byte's.default intread(char[] buf) Read an array of char's.default intread(double[] buf) Read an array of double's.default intread(float[] buf) Read an array of float's.default intread(int[] buf) Read an array of int's.default intread(long[] buf) Read a segment of an array of long's.default intread(short[] buf) Read an array of short's.default intRead an array of booleans, possibly including legalnullvalues.default intDeprecated.UseArrayDataInput.readLArray(Object)instead.default voidReads a Java array from the input, populating all elements, or else throwing andEOFException.default voidLikeArrayDataInput.readArrayFully(Object)but strictly for numerical types only.longreadLArray(Object o) Reads a Java array from the input, translating it from its binary representation to Java data format.voidreset()See the general contract of theresetmethod ofInputStream.default voidskipAllBytes(int toSkip) Deprecated.This call is handled byArrayDataInput.skipAllBytes(long), without the need for a separate implementation.
-
Constructor Details
-
BufferedDataInputStream
Deprecated.Constructs a new buffered FITS input stream- Parameters:
i- the underlying input streambufLength- the size of the buffer in bytes
-
BufferedDataInputStream
Deprecated.Constructs a new buffered FITS input stream with the default buffer size.- Parameters:
i- the underlying input stream
-
FitsInputStreaminstead which provides the same functionality with a less misleading name, or else useArrayInputStreamas a base for a more generic implementation for any (non-FITS) encoding.