abstract
void
|
close()
Closes the stream.
|
abstract
void
|
flush()
Discards the initial position of the stream prior to the current
stream position.
|
abstract
void
|
flushBefore(long pos)
Discards the initial portion of the stream prior to the
indicated postion.
|
abstract
int
|
getBitOffset()
Returns the current bit offset, as an integer between 0 and 7,
inclusive.
|
abstract
ByteOrder
|
getByteOrder()
Returns the byte order with which data values will be read from
this stream as an instance of the
java.nio.ByteOrder enumeration.
|
abstract
long
|
getFlushedPosition()
Returns the earliest position in the stream to which seeking
may be performed.
|
abstract
long
|
getStreamPosition()
Returns the current byte position of the stream.
|
abstract
boolean
|
isCached()
Returns true if this ImageInputStream
caches data itself in order to allow seeking backwards.
|
abstract
boolean
|
isCachedFile()
Returns true if this ImageInputStream
caches data itself in order to allow seeking backwards, and
the cache is kept in a temporary file.
|
abstract
boolean
|
isCachedMemory()
Returns true if this ImageInputStream
caches data itself in order to allow seeking backwards, and
the cache is kept in main memory.
|
abstract
long
|
length()
Returns the total length of the stream, if known.
|
abstract
void
|
mark()
Marks a position in the stream to be returned to by a
subsequent call to reset .
|
abstract
int
|
read(byte[] b, int off, int len)
Reads up to len bytes from the stream, and stores
them into b starting at index off .
|
abstract
int
|
read(byte[] b)
Reads up to b.length bytes from the stream, and
stores them into b starting at index 0.
|
abstract
int
|
read()
Reads a single byte from the stream and returns it as an
integer between 0 and 255.
|
abstract
int
|
readBit()
Reads a single bit from the stream and returns it as an
int with the value 0 or
1 .
|
abstract
long
|
readBits(int numBits)
Reads a bitstring from the stream and returns it as a
long , with the first bit read becoming the most
significant bit of the output.
|
abstract
boolean
|
readBoolean()
Reads a byte from the stream and returns a boolean
value of true if it is nonzero, false
if it is zero.
|
abstract
byte
|
readByte()
Reads a byte from the stream and returns it as a
byte value.
|
abstract
void
|
readBytes(IIOByteBuffer buf, int len)
Reads up to len bytes from the stream, and
modifies the supplied IIOByteBuffer to indicate
the byte array, offset, and length where the data may be found.
|
abstract
char
|
readChar()
Equivalent to readUnsignedShort , except that the
result is returned using the char datatype.
|
abstract
double
|
readDouble()
Reads 8 bytes from the stream, and (conceptually) concatenates
them according to the current byte order and returns the result
as a double .
|
abstract
float
|
readFloat()
Reads 4 bytes from the stream, and (conceptually) concatenates
them according to the current byte order and returns the result
as a float .
|
abstract
void
|
readFully(byte[] b)
Reads b.length bytes from the stream, and stores them
into b starting at index 0 .
|
abstract
void
|
readFully(byte[] b, int off, int len)
Reads len bytes from the stream, and stores them
into b starting at index off .
|
abstract
void
|
readFully(char[] c, int off, int len)
Reads len chars (unsigned 16-bit integers) from the
stream according to the current byte order, and
stores them into c starting at index
off .
|
abstract
void
|
readFully(int[] i, int off, int len)
Reads len ints (signed 32-bit integers) from the
stream according to the current byte order, and
stores them into i starting at index
off .
|
abstract
void
|
readFully(float[] f, int off, int len)
Reads len floats (32-bit IEEE single-precision
floats) from the stream according to the current byte order,
and stores them into f starting at
index off .
|
abstract
void
|
readFully(short[] s, int off, int len)
Reads len shorts (signed 16-bit integers) from the
stream according to the current byte order, and
stores them into s starting at index
off .
|
abstract
void
|
readFully(double[] d, int off, int len)
Reads len doubles (64-bit IEEE double-precision
floats) from the stream according to the current byte order,
and stores them into d starting at
index off .
|
abstract
void
|
readFully(long[] l, int off, int len)
Reads len longs (signed 64-bit integers) from the
stream according to the current byte order, and
stores them into l starting at index
off .
|
abstract
int
|
readInt()
Reads 4 bytes from the stream, and (conceptually) concatenates
them according to the current byte order and returns the result
as an int .
|
abstract
String
|
readLine()
Reads the next line of text from the input stream.
|
abstract
long
|
readLong()
Reads 8 bytes from the stream, and (conceptually) concatenates
them according to the current byte order and returns the result
as a long .
|
abstract
short
|
readShort()
Reads two bytes from the stream, and (conceptually)
concatenates them according to the current byte order, and
returns the result as a short value.
|
abstract
String
|
readUTF()
Reads in a string that has been encoded using a
modified
UTF-8
format.
|
abstract
int
|
readUnsignedByte()
Reads a byte from the stream, and (conceptually) converts it to
an int, masks it with 0xff in order to strip off
any sign-extension bits, and returns it as a byte
value.
|
abstract
long
|
readUnsignedInt()
Reads 4 bytes from the stream, and (conceptually) concatenates
them according to the current byte order, converts the result
to a long, masks it with 0xffffffffL in order to
strip off any sign-extension bits, and returns the result as an
unsigned long value.
|
abstract
int
|
readUnsignedShort()
Reads two bytes from the stream, and (conceptually)
concatenates them according to the current byte order, converts
the resulting value to an int , masks it with
0xffff in order to strip off any sign-extension
buts, and returns the result as an unsigned int
value.
|
abstract
void
|
reset()
Returns the stream pointer to its previous position, including
the bit offset, at the time of the most recent unmatched call
to mark .
|
abstract
void
|
seek(long pos)
Sets the current stream position to the desired location.
|
abstract
void
|
setBitOffset(int bitOffset)
Sets the bit offset to an integer between 0 and 7, inclusive.
|
abstract
void
|
setByteOrder(ByteOrder byteOrder)
Sets the desired byte order for future reads of data values
from this stream.
|
abstract
long
|
skipBytes(long n)
Moves the stream position forward by a given number of bytes.
|
abstract
int
|
skipBytes(int n)
Moves the stream position forward by a given number of bytes.
|