Class ResourceInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
nl.siegmann.epublib.domain.ResourceInputStream
- All Implemented Interfaces:
Closeable, AutoCloseable
A wrapper class for closing a ZipFile object when the InputStream derived
from it is closed.
-
Field Summary
FieldsFields inherited from class FilterInputStream
in -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class FilterInputStream
available, mark, markSupported, read, read, read, reset, skipMethods inherited from class InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
Field Details
-
zipFile
-
-
Constructor Details
-
ResourceInputStream
Constructor.- Parameters:
in- The InputStream object.zipFile- The ZipFile object.
-
-
Method Details
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classFilterInputStream- Throws:
IOException
-