Class WeakZipFileFactory.WeakZipFile.WeakZipInputStream
java.lang.Object
java.io.InputStream
org.apache.felix.framework.util.WeakZipFileFactory.WeakZipFile.WeakZipInputStream
- All Implemented Interfaces:
Closeable, AutoCloseable
- Enclosing class:
WeakZipFileFactory.WeakZipFile
This is an InputStream wrapper that will properly reopen the underlying
zip file if it is weakly closed and create the underlying input stream.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate final Stringprivate InputStreamprivate ZipFile -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
m_entryName
-
m_is
-
m_currentPos
private int m_currentPos -
m_zipFileSnapshot
-
-
Constructor Details
-
WeakZipInputStream
WeakZipInputStream(String entryName, InputStream is)
-
-
Method Details
-
ensureInputStreamIsValid
This internal method ensures that the zip file is open and that the underlying input stream is valid. Upon successful completion, the underlying input stream will be valid and the local mutex will be held.- Throws:
IOException- if the was an error handling the input stream.
-
available
- Overrides:
availablein classInputStream- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classInputStream- Throws:
IOException
-
mark
public void mark(int i) - Overrides:
markin classInputStream
-
markSupported
public boolean markSupported()- Overrides:
markSupportedin classInputStream
-
read
- Specified by:
readin classInputStream- Throws:
IOException
-
read
- Overrides:
readin classInputStream- Throws:
IOException
-
read
- Overrides:
readin classInputStream- Throws:
IOException
-
reset
- Overrides:
resetin classInputStream- Throws:
IOException
-
skip
- Overrides:
skipin classInputStream- Throws:
IOException
-