GeezerVison is showing docs.oracle.com — FileCacheImageInputStream (Java Platform SE 8 )
Java™ Platform Standard Ed. 8
javax.imageio.stream
Class FileCacheImageInputStream
-
-
Method Summary
All Methods Instance Methods Concrete Methods
| Modifier and Type |
Method |
Description |
void |
close() |
Closes this FileCacheImageInputStream, closing
and removing the cache file.
|
protected void |
finalize() |
Finalizes this object prior to garbage collection.
|
boolean |
isCached() |
Returns true since this
ImageInputStream caches data in order to allow
seeking backwards.
|
boolean |
isCachedFile() |
Returns true since this
ImageInputStream maintains a file cache.
|
boolean |
isCachedMemory() |
Returns false since this
ImageInputStream does not maintain a main memory
cache.
|
int |
read() |
Reads a single byte from the stream and returns it as an
int between 0 and 255.
|
int |
read(byte[] b,
int off,
int len) |
Reads up to len bytes from the stream, and stores
them into b starting at index off.
|
-
Methods inherited from class javax.imageio.stream.ImageInputStreamImpl
checkClosed, 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
-
-
Method Detail
-
finalize
protected void finalize()
throws Throwable
Finalizes this object prior to garbage collection. The
close method is called to close any open input
source. This method should not be called from application
code.
- Overrides:
finalize in class ImageInputStreamImpl
- Throws:
Throwable - if an error occurs during superclass
finalization.
- See Also:
WeakReference,
PhantomReference
Java™ Platform Standard Ed. 8
Submit a bug or feature For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples. Copyright © 1993, 2026, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.
|