|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.InputStream
org.jboss.virtual.plugins.context.zip.ZipEntryInputStream
public class ZipEntryInputStream
ZipEntryInputStream is part of ZipFileWrapper implementation. It wraps the stream retrieved from ZipFile.getInputStream(entry) and releases the underlying ZipFileWrapper when detecting end of use.
Method Summary | |
---|---|
int |
available()
|
void |
close()
Close this stream and release zipWrapper |
protected void |
finalize()
Properly release held resources |
void |
mark(int readlimit)
|
int |
read()
Read one byte. |
int |
read(byte[] buf)
Read a buffer of bytes. |
int |
read(byte[] buf,
int off,
int len)
Read a buffer of bytes. |
void |
reset()
|
long |
skip(long n)
|
Methods inherited from class java.io.InputStream |
---|
markSupported |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public int read() throws IOException
read
in class InputStream
IOException
- for any errorInputStream.read()
public int read(byte[] buf) throws IOException
read
in class InputStream
buf
- read buffer
IOException
- for any errorInputStream.read(byte[])
public int read(byte[] buf, int off, int len) throws IOException
read
in class InputStream
buf
- read bufferoff
- position within buffer to start reading atlen
- maximum bytes to read
IOException
- for any errorInputStream.read(byte[],int,int)
public void reset() throws IOException
reset
in class InputStream
IOException
InputStream.reset()
public void mark(int readlimit)
mark
in class InputStream
InputStream.mark(int)
public int available() throws IOException
available
in class InputStream
IOException
InputStream.available()
public long skip(long n) throws IOException
skip
in class InputStream
IOException
InputStream.skip(long)
public void close() throws IOException
close
in interface Closeable
close
in class InputStream
IOException
InputStream.close()
protected void finalize() throws Throwable
finalize
in class Object
Throwable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |