class WeakZipFileFactory.WeakZipFile.WeakZipInputStream
extends java.io.InputStream
| Modifier and Type | Field and Description |
|---|---|
private int |
m_currentPos |
private java.lang.String |
m_entryName |
private java.io.InputStream |
m_is |
private java.util.zip.ZipFile |
m_zipFileSnapshot |
| Constructor and Description |
|---|
WeakZipInputStream(java.lang.String entryName,
java.io.InputStream is) |
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
void |
close() |
private void |
ensureInputStreamIsValid()
This internal method ensures that the zip file is open and that
the underlying input stream is valid.
|
void |
mark(int i) |
boolean |
markSupported() |
int |
read() |
int |
read(byte[] bytes) |
int |
read(byte[] bytes,
int i,
int i1) |
void |
reset() |
long |
skip(long l) |
private final java.lang.String m_entryName
private java.io.InputStream m_is
private int m_currentPos
private java.util.zip.ZipFile m_zipFileSnapshot
WeakZipInputStream(java.lang.String entryName,
java.io.InputStream is)
private void ensureInputStreamIsValid()
throws java.io.IOException
java.io.IOException - if the was an error handling the input stream.public int available()
throws java.io.IOException
available in class java.io.InputStreamjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.InputStreamjava.io.IOExceptionpublic void mark(int i)
mark in class java.io.InputStreampublic boolean markSupported()
markSupported in class java.io.InputStreampublic int read()
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic int read(byte[] bytes)
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic int read(byte[] bytes,
int i,
int i1)
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic void reset()
throws java.io.IOException
reset in class java.io.InputStreamjava.io.IOExceptionpublic long skip(long l)
throws java.io.IOException
skip in class java.io.InputStreamjava.io.IOException