Class MemoryCacheImageInputStream
- java.lang.Object
-
- com.tom_roush.harmony.javax.imageio.stream.ImageInputStreamImpl
-
- com.tom_roush.harmony.javax.imageio.stream.MemoryCacheImageInputStream
-
- All Implemented Interfaces:
ImageInputStream,DataInput
public class MemoryCacheImageInputStream extends ImageInputStreamImpl
-
-
Field Summary
-
Fields inherited from class com.tom_roush.harmony.javax.imageio.stream.ImageInputStreamImpl
bitOffset, byteOrder, flushedPos, streamPos
-
-
Constructor Summary
Constructors Constructor Description MemoryCacheImageInputStream(InputStream stream)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidflushBefore(long pos)booleanisCached()booleanisCachedFile()booleanisCachedMemory()intread()intread(byte[] b, int off, int len)-
Methods inherited from class com.tom_roush.harmony.javax.imageio.stream.ImageInputStreamImpl
checkClosed, 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, skipBytes
-
-
-
-
Constructor Detail
-
MemoryCacheImageInputStream
public MemoryCacheImageInputStream(InputStream stream)
-
-
Method Detail
-
read
public int read() throws IOException- Specified by:
readin interfaceImageInputStream- Specified by:
readin classImageInputStreamImpl- Throws:
IOException
-
read
public int read(byte[] b, int off, int len) throws IOException- Specified by:
readin interfaceImageInputStream- Specified by:
readin classImageInputStreamImpl- Throws:
IOException
-
isCached
public boolean isCached()
- Specified by:
isCachedin interfaceImageInputStream- Overrides:
isCachedin classImageInputStreamImpl
-
isCachedFile
public boolean isCachedFile()
- Specified by:
isCachedFilein interfaceImageInputStream- Overrides:
isCachedFilein classImageInputStreamImpl
-
isCachedMemory
public boolean isCachedMemory()
- Specified by:
isCachedMemoryin interfaceImageInputStream- Overrides:
isCachedMemoryin classImageInputStreamImpl
-
close
public void close() throws IOException- Specified by:
closein interfaceImageInputStream- Overrides:
closein classImageInputStreamImpl- Throws:
IOException
-
flushBefore
public void flushBefore(long pos) throws IOException- Specified by:
flushBeforein interfaceImageInputStream- Overrides:
flushBeforein classImageInputStreamImpl- Throws:
IOException
-
-