API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.imageio.stream. MemoryCacheImageOutputStream View Source
Author(s)
Since
Version
0.5
Serial
Hierarchy
 Object
      ImageInputStreamImpl
          ImageOutputStreamImpl
              MemoryCacheImageOutputStream
Implements
Subclasses
Description
public class MemoryCacheImageOutputStream
  An implementation of ImageOutputStream that writes its output to a regular OutputStream.
See also:   
Constructors
public MemoryCacheImageOutputStream (OutputStream stream)
  Constructs a MemoryCacheImageOutputStream that will write to a given OutputStream.
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 MemoryCacheImageOutputStream.
protected void finalize () throws Throwable [Inherited From 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]
protectedfinal void flushBits () throws IOException [Inherited From ImageOutputStreamImpl]
  If the bit offset is non-zero, forces the remaining bits in the current byte to 0 and advances the stream position by one.
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 ImageOutputStream caches data in order to allow seeking backwards.
public boolean isCachedFile () [Overrides ImageInputStreamImpl]
  Returns false since this ImageOutputStream does not maintain a file cache.
public boolean isCachedMemory () [Overrides ImageInputStreamImpl]
  Returns true since this ImageOutputStream maintains a main memory cache.
public long length () [Overrides ImageInputStreamImpl]
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).
public void write (byte[] b) throws IOException [Inherited From ImageOutputStreamImpl]
public void write (byte[] b, int off, int len) throws IOException [Specified in ImageOutputStreamImpl]
public void write (int b) throws IOException [Specified in ImageOutputStreamImpl]
public void writeBit (int bit) throws IOException [Inherited From ImageOutputStreamImpl]
public void writeBits (long bits, int numBits) throws IOException [Inherited From ImageOutputStreamImpl]
public void writeBoolean (boolean v) throws IOException [Inherited From ImageOutputStreamImpl]
public void writeByte (int v) throws IOException [Inherited From ImageOutputStreamImpl]
public void writeBytes (String s) throws IOException [Inherited From ImageOutputStreamImpl]
public void writeChar (int v) throws IOException [Inherited From ImageOutputStreamImpl]
public void writeChars (char[] c, int off, int len) throws IOException [Inherited From ImageOutputStreamImpl]
public void writeChars (String s) throws IOException [Inherited From ImageOutputStreamImpl]
public void writeDouble (double v) throws IOException [Inherited From ImageOutputStreamImpl]
public void writeDoubles (double[] d, int off, int len) throws IOException [Inherited From ImageOutputStreamImpl]
public void writeFloat (float v) throws IOException [Inherited From ImageOutputStreamImpl]
public void writeFloats (float[] f, int off, int len) throws IOException [Inherited From ImageOutputStreamImpl]
public void writeInt (int v) throws IOException [Inherited From ImageOutputStreamImpl]
public void writeInts (int[] i, int off, int len) throws IOException [Inherited From ImageOutputStreamImpl]
public void writeLong (long v) throws IOException [Inherited From ImageOutputStreamImpl]
public void writeLongs (long[] l, int off, int len) throws IOException [Inherited From ImageOutputStreamImpl]
public void writeShort (int v) throws IOException [Inherited From ImageOutputStreamImpl]
public void writeShorts (short[] s, int off, int len) throws IOException [Inherited From ImageOutputStreamImpl]
public void writeUTF (String s) throws IOException [Inherited From ImageOutputStreamImpl]
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