API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.imageio.stream. MemoryCacheImageInputStream View Source
Author(s)
Since
Version
0.5
Serial
Hierarchy
 Object
      ImageInputStreamImpl
          MemoryCacheImageInputStream
Implements
Subclasses
Description
public class MemoryCacheImageInputStream
  An implementation of ImageInputStream that gets its input from a regular InputStream.
See also:   
Constructors
public MemoryCacheImageInputStream (InputStream stream)
  Constructs a MemoryCacheImageInputStream that will read from a given InputStream.
Methods
Hide/Show inherited methods
protectedfinal void checkClosed () throws IOException [Inherited From ImageInputStreamImpl]
  Throws an IOException if the stream has been closed.
public void close () throws IOException [Overrides ImageInputStreamImpl]
  Closes this MemoryCacheImageInputStream, freeing the cache.
protected void finalize () throws Throwable [Overrides ImageInputStreamImpl]
  Finalizes this object prior to garbage collection.
public void flush () throws IOException [Inherited From ImageInputStreamImpl]
public void flushBefore (long pos) throws IOException [Overrides ImageInputStreamImpl]
public int getBitOffset () throws IOException [Inherited From ImageInputStreamImpl]
public ByteOrder getByteOrder () [Inherited From ImageInputStreamImpl]
public long getFlushedPosition () [Inherited From ImageInputStreamImpl]
public long getStreamPosition () throws IOException [Inherited From ImageInputStreamImpl]
public boolean isCached () [Overrides ImageInputStreamImpl]
  Returns true since this ImageInputStream caches data in order to allow seeking backwards.
public boolean isCachedFile () [Overrides ImageInputStreamImpl]
  Returns false since this ImageInputStream does not maintain a file cache.
public boolean isCachedMemory () [Overrides ImageInputStreamImpl]
  Returns true since this ImageInputStream maintains a main memory cache.
public long length () [Inherited From ImageInputStreamImpl]
  Returns -1L to indicate that the stream has unknown length.
public void mark () [Inherited From ImageInputStreamImpl]
Pushes the current stream position onto a stack of marked positions.
public int read () throws IOException [Specified in ImageInputStreamImpl]
public int read (byte[] b) throws IOException [Inherited From ImageInputStreamImpl]
  A convenience method that calls read(b, 0, b.length).
public int read (byte[] b, int off, int len) throws IOException [Specified in ImageInputStreamImpl]
public int readBit () throws IOException [Inherited From ImageInputStreamImpl]
public long readBits (int numBits) throws IOException [Inherited From ImageInputStreamImpl]
public boolean readBoolean () throws IOException [Inherited From ImageInputStreamImpl]
public byte readByte () throws IOException [Inherited From ImageInputStreamImpl]
public void readBytes (IIOByteBuffer buf, int len) throws IOException [Inherited From ImageInputStreamImpl]
public char readChar () throws IOException [Inherited From ImageInputStreamImpl]
public double readDouble () throws IOException [Inherited From ImageInputStreamImpl]
public float readFloat () throws IOException [Inherited From ImageInputStreamImpl]
public void readFully (byte[] b) throws IOException [Inherited From ImageInputStreamImpl]
public void readFully (byte[] b, int off, int len) throws IOException [Inherited From ImageInputStreamImpl]
public void readFully (char[] c, int off, int len) throws IOException [Inherited From ImageInputStreamImpl]
public void readFully (double[] d, int off, int len) throws IOException [Inherited From ImageInputStreamImpl]
public void readFully (float[] f, int off, int len) throws IOException [Inherited From ImageInputStreamImpl]
public void readFully (int[] i, int off, int len) throws IOException [Inherited From ImageInputStreamImpl]
public void readFully (long[] l, int off, int len) throws IOException [Inherited From ImageInputStreamImpl]
public void readFully (short[] s, int off, int len) throws IOException [Inherited From ImageInputStreamImpl]
public int readInt () throws IOException [Inherited From ImageInputStreamImpl]
public String readLine () throws IOException [Inherited From ImageInputStreamImpl]
public long readLong () throws IOException [Inherited From ImageInputStreamImpl]
public short readShort () throws IOException [Inherited From ImageInputStreamImpl]
public int readUnsignedByte () throws IOException [Inherited From ImageInputStreamImpl]
public long readUnsignedInt () throws IOException [Inherited From ImageInputStreamImpl]
public int readUnsignedShort () throws IOException [Inherited From ImageInputStreamImpl]
public String readUTF () throws IOException [Inherited From ImageInputStreamImpl]
public void reset () throws IOException [Inherited From ImageInputStreamImpl]
  Resets the current stream byte and bit positions from the stack of marked positions.
public void seek (long pos) throws IOException [Inherited From ImageInputStreamImpl]
public void setBitOffset (int bitOffset) throws IOException [Inherited From ImageInputStreamImpl]
public void setByteOrder (ByteOrder byteOrder) [Inherited From ImageInputStreamImpl]
public int skipBytes (int n) throws IOException [Inherited From ImageInputStreamImpl]
  Advances the current stream position by calling seek(getStreamPosition() + n).
public long skipBytes (long n) throws IOException [Inherited From ImageInputStreamImpl]
  Advances the current stream position by calling seek(getStreamPosition() + n).
Fields
Hide/Show inherited fields
protected int bitOffset [Inherited From ImageInputStreamImpl]
  The current bit offset within the stream.
pack-private byte byteBuf [Inherited From ImageInputStreamImpl]
  Byte buffer used for readFully(type[], int, int).
protected ByteOrder byteOrder [Inherited From ImageInputStreamImpl]
  The byte order of the stream as an instance of the enumeration class java.nio.ByteOrder, where ByteOrder.BIG_ENDIAN indicates network byte order and ByteOrder.LITTLE_ENDIAN indicates the reverse order.
protected long flushedPos [Inherited From ImageInputStreamImpl]
  The position prior to which data may be discarded.
protected long streamPos [Inherited From ImageInputStreamImpl]
  The current read position within the stream.
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar