public class MemoryCacheImageOutputStream extends ImageOutputStreamImpl
bitOffset, byteOrder, flushedPos, streamPos| Constructor and Description |
|---|
MemoryCacheImageOutputStream(OutputStream stream) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
flushBefore(long position) |
boolean |
isCached() |
boolean |
isCachedFile() |
boolean |
isCachedMemory() |
int |
read() |
int |
read(byte[] data,
int offset,
int len) |
void |
write(byte[] data,
int offset,
int len)
Writes a region of data from an array into the stream.
|
void |
write(int value)
Writes an
int into the stream. |
flushBits, write, writeBit, writeBits, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeChars, writeDouble, writeDoubles, writeFloat, writeFloats, writeInt, writeInts, writeLong, writeLongs, writeShort, writeShorts, writeUTFcheckClosed, finalize, flush, getBitOffset, getByteOrder, getFlushedPosition, getStreamPosition, length, mark, read, readBit, readBits, readBoolean, readByte, readBytes, readChar, readDouble, readFloat, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedInt, readUnsignedShort, readUTF, reset, seek, setBitOffset, setByteOrder, skipBytes, skipBytesclone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitflush, getBitOffset, getByteOrder, getFlushedPosition, getStreamPosition, length, mark, read, readBit, readBits, readBoolean, readByte, readBytes, readChar, readDouble, readFloat, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedInt, readUnsignedShort, readUTF, reset, seek, setBitOffset, setByteOrder, skipBytes, skipBytespublic MemoryCacheImageOutputStream(OutputStream stream)
public void close() throws IOException
close in interface ImageInputStreamclose in class ImageInputStreamImplIOExceptionpublic void flushBefore(long position) throws IOException, NotImplementedException
flushBefore in interface ImageInputStreamflushBefore in interface ImageOutputStreamflushBefore in class ImageInputStreamImplIOException - if an errror occursNotImplementedExceptionpublic boolean isCached()
isCached in interface ImageInputStreamisCached in class ImageInputStreamImplpublic boolean isCachedFile()
isCachedFile in interface ImageInputStreamisCachedFile in class ImageInputStreamImplpublic boolean isCachedMemory()
isCachedMemory in interface ImageInputStreamisCachedMemory in class ImageInputStreamImplpublic int read() throws IOException, NotImplementedException
read in interface ImageInputStreamread in class ImageInputStreamImplIOExceptionNotImplementedExceptionpublic int read(byte[] data, int offset, int len) throws IOException, NotImplementedException
read in interface ImageInputStreamread in class ImageInputStreamImplIOExceptionNotImplementedExceptionpublic void write(byte[] data, int offset, int len) throws IOException
ImageOutputStreamwrite in interface DataOutputwrite in interface ImageOutputStreamwrite in class ImageOutputStreamImpldata - the data to be writtenoffset - the offset in the arraylen - the length in the arrayIOException - if an errror occurspublic void write(int value) throws IOException
ImageOutputStreamint into the stream.write in interface DataOutputwrite in interface ImageOutputStreamwrite in class ImageOutputStreamImplvalue - the data to be writtenIOException - if an errror occurs