javax.imageio.stream
Class FileCacheImageInputStream
java.lang.Object
javax.imageio.stream.ImageInputStreamImpl
javax.imageio.stream.FileCacheImageInputStream
- All Implemented Interfaces:
- DataInput, ImageInputStream
public class FileCacheImageInputStream
- extends ImageInputStreamImpl
Methods inherited from class javax.imageio.stream.ImageInputStreamImpl |
checkClosed, finalize, flush, flushBefore, 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 |
FileCacheImageInputStream
public FileCacheImageInputStream(InputStream stream,
File cacheDir)
throws IOException
- Throws:
IOException
close
public void close()
throws IOException
- Specified by:
close
in interface ImageInputStream
- Overrides:
close
in class ImageInputStreamImpl
- Throws:
IOException
isCached
public boolean isCached()
- Specified by:
isCached
in interface ImageInputStream
- Overrides:
isCached
in class ImageInputStreamImpl
isCachedFile
public boolean isCachedFile()
- Specified by:
isCachedFile
in interface ImageInputStream
- Overrides:
isCachedFile
in class ImageInputStreamImpl
isCachedMemory
public boolean isCachedMemory()
- Specified by:
isCachedMemory
in interface ImageInputStream
- Overrides:
isCachedMemory
in class ImageInputStreamImpl
read
public int read()
throws IOException
- Specified by:
read
in interface ImageInputStream
- Specified by:
read
in class ImageInputStreamImpl
- Throws:
IOException
read
public int read(byte[] data,
int offset,
int len)
throws IOException
- Specified by:
read
in interface ImageInputStream
- Specified by:
read
in class ImageInputStreamImpl
- Throws:
IOException