Methods Summary |
---|
public void | close()Closes this stream.
|
public void | flush()Flushes the initial position in this stream prior to the current stream
position.
|
public void | flushBefore(long pos)Flushes the initial position in this stream prior to the specified stream
position.
|
public int | getBitOffset()Gets the bit offset.
|
public java.nio.ByteOrder | getByteOrder()Gets the byte order.
|
public long | getFlushedPosition()Gets the flushed position.
|
public long | getStreamPosition()Gets the stream position.
|
public boolean | isCached()Returns true if this ImageInputStream caches data in order to allow
seeking backwards.
|
public boolean | isCachedFile()Returns true if this ImageInputStream caches data in order to allow
seeking backwards, and keeps it in a temporary file.
|
public boolean | isCachedMemory()Returns true if this ImageInputStream caches data in order to allow
seeking backwards, and keeps it in memory.
|
public long | length()Returns the length of the stream.
|
public void | mark()Marks a position in the stream to be returned to by a subsequent call to
reset.
|
public int | read()Reads a byte from the stream.
|
public int | read(byte[] b)Reads number of bytes which is equal to the specified array's length and
stores a result to this array.
|
public int | read(byte[] b, int off, int len)Reads the number of bytes specified by len parameter from the stream and
stores a result to the specified array with the specified offset.
|
public int | readBit()Reads a bit from the stream and returns the value 0 or 1.
|
public long | readBits(int numBits)Read the specified number of bits and returns their values as long.
|
public boolean | readBoolean()Reads a byte from the stream and returns a boolean true value if it is
non zero, false if it is zero.
|
public byte | readByte()Reads a byte from the stream and returns its value as signed byte.
|
public void | readBytes(javax.imageio.stream.IIOByteBuffer buf, int len)Reads the number of bytes specified by len parameter from the stream, and
modifies the specified IIOByteBuffer with the byte array, offset, and
length.
|
public char | readChar()Reads 2 bytes from the stream and returns their unsigned char value.
|
public double | readDouble()Reads 8 bytes from the stream, and returns the result as a double.
|
public float | readFloat()Reads 4 bytes from the stream, and returns the result as a float.
|
public void | readFully(byte[] b, int off, int len)Reads the specified number of bytes from the stream, and stores the
result into the specified array starting at the specified index offset.
|
public void | readFully(byte[] b)Reads number of bytes from the stream which is equal to the specified
array's length, and stores them into this array.
|
public void | readFully(short[] s, int off, int len)Reads the specified number of shorts from the stream, and stores the
result into the specified array starting at the specified index offset.
|
public void | readFully(char[] c, int off, int len)Reads the specified number of chars from the stream, and stores the
result into the specified array starting at the specified index offset.
|
public void | readFully(int[] i, int off, int len)Reads the specified number of integer from the stream, and stores the
result into the specified array starting at the specified index offset.
|
public void | readFully(long[] l, int off, int len)Reads the specified number of longs from the stream, and stores the
result into the specified array starting at the specified index offset.
|
public void | readFully(float[] f, int off, int len)Reads the specified number of floats from the stream, and stores the
result into the specified array starting at the specified index offset.
|
public void | readFully(double[] d, int off, int len)Reads the specified number of doubles from the stream, and stores the
result into the specified array starting at the specified index offset.
|
public int | readInt()Reads 4 bytes from the stream, and returns the result as an integer.
|
public java.lang.String | readLine()Reads a line from the stream.
|
public long | readLong()Reads 8 bytes from the stream, and returns the result as a long.
|
public short | readShort()Reads 2 bytes from the stream, and returns the result as a short.
|
public java.lang.String | readUTF()Reads bytes from the stream in a string that has been encoded in a
modified UTF-8 format.
|
public int | readUnsignedByte()Reads a byte from the stream and returns its value as an integer.
|
public long | readUnsignedInt()Reads 4 bytes from the stream and returns its value as long.
|
public int | readUnsignedShort()Reads 2 bytes from the stream and returns its value as an unsigned short.
|
public void | reset()Returns the file pointer to its previous position.
|
public void | seek(long pos)Sets the current stream position to the specified location.
|
public void | setBitOffset(int bitOffset)Sets the bit offset to an integer between 0 and 7.
|
public void | setByteOrder(java.nio.ByteOrder byteOrder)Sets the specified byte order for reading of data values from this
stream.
|
public int | skipBytes(int n)Skips the specified number of bytes by moving stream position.
|
public long | skipBytes(long n)Skips the specified number of bytes by moving stream position.
|