Package org.apache.naming.resources
Class WebDirContext.JarResource
- java.lang.Object
-
- org.apache.naming.resources.Resource
-
- org.apache.naming.resources.WebDirContext.JarResource
-
- Enclosing class:
- WebDirContext
protected static class WebDirContext.JarResource extends Resource
This specialized resource implementation avoids opening the InputStream to the jar entry right away (which would put a lock on the jar file).
-
-
Field Summary
Fields Modifier and Type Field Description protected JarEntry
jarEntry
Associated JarEntry object.protected JarFile
jarFile
Associated JarFile object.-
Fields inherited from class org.apache.naming.resources.Resource
binaryContent, inputStream
-
-
Constructor Summary
Constructors Constructor Description JarResource(JarFile jarFile, JarEntry jarEntry)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InputStream
streamContent()
Content accessor.-
Methods inherited from class org.apache.naming.resources.Resource
getContent, setContent, setContent
-
-
-
-
Method Detail
-
streamContent
public InputStream streamContent() throws IOException
Content accessor.- Overrides:
streamContent
in classResource
- Returns:
- InputStream
- Throws:
IOException
-
-