public class FileCacheImageOutputStream extends ImageOutputStreamImpl
bitOffset, byteOrder, flushedPos, streamPos| Constructor and Description |
|---|
FileCacheImageOutputStream(java.io.OutputStream s,
java.io.File cacheDir) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
flushBefore(long pos) |
boolean |
isCached() |
boolean |
isCachedFile() |
boolean |
isCachedMemory() |
long |
length() |
int |
read() |
int |
read(byte[] data,
int offset,
int len) |
void |
seek(long pos) |
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, 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, setBitOffset, setByteOrder, skipBytes, skipBytesclone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitflush, getBitOffset, getByteOrder, getFlushedPosition, getStreamPosition, 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, setBitOffset, setByteOrder, skipBytes, skipBytespublic FileCacheImageOutputStream(java.io.OutputStream s, java.io.File cacheDir) throws java.io.IOException
java.io.IOExceptionpublic void close() throws java.io.IOException
close in interface ImageInputStreamclose in class ImageInputStreamImpljava.io.IOExceptionpublic 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 java.io.IOException
read in interface ImageInputStreamread in class ImageInputStreamImpljava.io.IOExceptionpublic int read(byte[] data, int offset, int len) throws java.io.IOException
read in interface ImageInputStreamread in class ImageInputStreamImpljava.io.IOExceptionpublic void write(byte[] data, int offset, int len) throws java.io.IOException
ImageOutputStreamwrite in interface java.io.DataOutputwrite in interface ImageOutputStreamwrite in class ImageOutputStreamImpldata - the data to be writtenoffset - the offset in the arraylen - the length in the arrayjava.io.IOException - if an errror occurspublic void write(int value) throws java.io.IOException
ImageOutputStreamint into the stream.write in interface java.io.DataOutputwrite in interface ImageOutputStreamwrite in class ImageOutputStreamImplvalue - the data to be writtenjava.io.IOException - if an errror occurspublic long length()
length in interface ImageInputStreamlength in class ImageInputStreamImplpublic void seek(long pos) throws java.io.IOException
seek in interface ImageInputStreamseek in class ImageInputStreamImpljava.io.IOExceptionpublic void flushBefore(long pos) throws java.io.IOException
flushBefore in interface ImageInputStreamflushBefore in interface ImageOutputStreamflushBefore in class ImageInputStreamImpljava.io.IOException - if an errror occurs