Package org.apache.catalina.webresources
Class AbstractArchiveResource.JarInputStreamWrapper
- java.lang.Object
- 
- java.io.InputStream
- 
- org.apache.catalina.webresources.AbstractArchiveResource.JarInputStreamWrapper
 
 
- 
- All Implemented Interfaces:
- java.io.Closeable,- java.lang.AutoCloseable
 - Enclosing class:
- AbstractArchiveResource
 
 protected class AbstractArchiveResource.JarInputStreamWrapper extends java.io.InputStreamThis wrapper assumes that the InputStream was created from a JarFile obtained from a call to getArchiveResourceSet().openJarFile(). If this is not the case then the usage counting in AbstractArchiveResourceSet will break and the JarFile may be unexpectedly closed.
- 
- 
Constructor SummaryConstructors Constructor Description JarInputStreamWrapper(java.util.jar.JarEntry jarEntry, java.io.InputStream is)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description intavailable()voidclose()java.security.cert.Certificate[]getCertificates()voidmark(int readlimit)booleanmarkSupported()intread()intread(byte[] b)intread(byte[] b, int off, int len)voidreset()longskip(long n)
 
- 
- 
- 
Method Detail- 
readpublic int read() throws java.io.IOException- Specified by:
- readin class- java.io.InputStream
- Throws:
- java.io.IOException
 
 - 
readpublic int read(byte[] b) throws java.io.IOException- Overrides:
- readin class- java.io.InputStream
- Throws:
- java.io.IOException
 
 - 
readpublic int read(byte[] b, int off, int len) throws java.io.IOException- Overrides:
- readin class- java.io.InputStream
- Throws:
- java.io.IOException
 
 - 
skippublic long skip(long n) throws java.io.IOException- Overrides:
- skipin class- java.io.InputStream
- Throws:
- java.io.IOException
 
 - 
availablepublic int available() throws java.io.IOException- Overrides:
- availablein class- java.io.InputStream
- Throws:
- java.io.IOException
 
 - 
closepublic void close() throws java.io.IOException- Specified by:
- closein interface- java.lang.AutoCloseable
- Specified by:
- closein interface- java.io.Closeable
- Overrides:
- closein class- java.io.InputStream
- Throws:
- java.io.IOException
 
 - 
markpublic void mark(int readlimit) - Overrides:
- markin class- java.io.InputStream
 
 - 
resetpublic void reset() throws java.io.IOException- Overrides:
- resetin class- java.io.InputStream
- Throws:
- java.io.IOException
 
 - 
markSupportedpublic boolean markSupported() - Overrides:
- markSupportedin class- java.io.InputStream
 
 - 
getCertificatespublic java.security.cert.Certificate[] getCertificates() 
 
- 
 
-