API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.imageio.stream. ImageInputStream View Source
Author(s)
Since
Version
0.5
Serial
Hierarchy
 DataInput
      ImageInputStream
Subinterfaces
Description
public interface ImageInputStream
  A seekable input stream interface for use by ImageReaders.
Methods
Hide/Show inherited methods
public void close () throws IOException
  Closes the stream.
public void flush () throws IOException
  Discards the initial position of the stream prior to the current stream position.
public void flushBefore (long pos) throws IOException
  Discards the initial portion of the stream prior to the indicated postion.
public int getBitOffset () throws IOException
  Returns the current bit offset, as an integer between 0 and 7, inclusive.
public 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.
public long getFlushedPosition ()
  Returns the earliest position in the stream to which seeking may be performed.
public long getStreamPosition () throws IOException
  Returns the current byte position of the stream.
public boolean isCached ()
  Returns true if this ImageInputStream caches data itself in order to allow seeking backwards.
public 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.
public boolean isCachedMemory ()
  Returns true if this ImageInputStream caches data itself in order to allow seeking backwards, and the cache is kept in main memory.
public long length () throws IOException
  Returns the total length of the stream, if known.
public void mark ()
  Marks a position in the stream to be returned to by a subsequent call to reset.
public int read () throws IOException
  Reads a single byte from the stream and returns it as an integer between 0 and 255.
public int read (byte[] b) throws IOException
  Reads up to b.length bytes from the stream, and stores them into b starting at index 0.
public int read (byte[] b, int off, int len) throws IOException
  Reads up to len bytes from the stream, and stores them into b starting at index off.
public int readBit () throws IOException
  Reads a single bit from the stream and returns it as an int with the value 0 or 1.
public long readBits (int numBits) throws IOException
  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.
public boolean readBoolean () throws IOException [Specified in DataInput]
  Reads a byte from the stream and returns a boolean value of true if it is nonzero, false if it is zero.
public byte readByte () throws IOException [Specified in DataInput]
  Reads a byte from the stream and returns it as a byte value.
public void readBytes (IIOByteBuffer buf, int len) throws IOException
  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.
public char readChar () throws IOException [Specified in DataInput]
  Equivalent to readUnsignedShort, except that the result is returned using the char datatype.
public double readDouble () throws IOException [Specified in DataInput]
  Reads 8 bytes from the stream, and (conceptually) concatenates them according to the current byte order and returns the result as a double.
public float readFloat () throws IOException [Specified in DataInput]
  Reads 4 bytes from the stream, and (conceptually) concatenates them according to the current byte order and returns the result as a float.
public void readFully (byte[] b) throws IOException [Specified in DataInput]
  Reads b.length bytes from the stream, and stores them into b starting at index 0.
public void readFully (byte[] b, int off, int len) throws IOException [Specified in DataInput]
  Reads len bytes from the stream, and stores them into b starting at index off.
public void readFully (char[] c, int off, int len) throws IOException
  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.
public void readFully (double[] d, int off, int len) throws IOException
  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.
public void readFully (float[] f, int off, int len) throws IOException
  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.
public void readFully (int[] i, int off, int len) throws IOException
  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.
public void readFully (long[] l, int off, int len) throws IOException
  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.
public void readFully (short[] s, int off, int len) throws IOException
  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.
public int readInt () throws IOException [Specified in DataInput]
  Reads 4 bytes from the stream, and (conceptually) concatenates them according to the current byte order and returns the result as an int.
public String readLine () throws IOException [Specified in DataInput]
  Reads the next line of text from the input stream.
public long readLong () throws IOException [Specified in DataInput]
  Reads 8 bytes from the stream, and (conceptually) concatenates them according to the current byte order and returns the result as a long.
public short readShort () throws IOException [Specified in DataInput]
  Reads two bytes from the stream, and (conceptually) concatenates them according to the current byte order, and returns the result as a short value.
public int readUnsignedByte () throws IOException [Specified in DataInput]
  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.
public long readUnsignedInt () throws IOException
  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.
public int readUnsignedShort () throws IOException [Specified in DataInput]
  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.
public String readUTF () throws IOException [Specified in DataInput]
  Reads in a string that has been encoded using a modified UTF-8 format.
public void reset () throws IOException
  Returns the stream pointer to its previous position, including the bit offset, at the time of the most recent unmatched call to mark.
public void seek (long pos) throws IOException
  Sets the current stream position to the desired location.
public void setBitOffset (int bitOffset) throws IOException
  Sets the bit offset to an integer between 0 and 7, inclusive.
public void setByteOrder (ByteOrder byteOrder)
  Sets the desired byte order for future reads of data values from this stream.
public int skipBytes (int n) throws IOException [Specified in DataInput]
  Moves the stream position forward by a given number of bytes.
public long skipBytes (long n) throws IOException
  Moves the stream position forward by a given number of bytes.
Fields
Hide/Show inherited fields
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar