anvil.server
Class JarContainer.JarResource
java.lang.Object
|
+--anvil.parser.StreamInputSource
|
+--anvil.server.JarContainer.JarResource
- All Implemented Interfaces:
- InputSource, Resource
- Enclosing class:
- JarContainer
- public static class JarContainer.JarResource
- extends StreamInputSource
- implements Resource
|
Constructor Summary |
JarContainer.JarResource(Zone zone,
java.util.jar.JarFile file,
java.util.jar.JarEntry entry,
java.lang.String contentType)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JarContainer.JarResource
public JarContainer.JarResource(Zone zone,
java.util.jar.JarFile file,
java.util.jar.JarEntry entry,
java.lang.String contentType)
getName
public java.lang.String getName()
- Specified by:
getName in interface Resource
getPathinfo
public java.lang.String getPathinfo()
- Specified by:
getPathinfo in interface Resource
isDirectory
public boolean isDirectory()
- Specified by:
isDirectory in interface Resource
getContentType
public java.lang.String getContentType()
- Specified by:
getContentType in interface Resource
getURL
public java.net.URL getURL()
- Specified by:
getURL in interface InputSource- Overrides:
getURL in class StreamInputSource
list
public Resource[] list()
throws java.io.IOException
- Specified by:
list in interface Resource
java.io.IOException
writeTo
public void writeTo(java.io.OutputStream output)
throws java.io.IOException
- Specified by:
writeTo in interface Resource
java.io.IOException
getLastModified
public long getLastModified()
- Specified by:
getLastModified in interface InputSource- Overrides:
getLastModified in class StreamInputSource
getLength
public int getLength()
- Specified by:
getLength in interface InputSource- Overrides:
getLength in class StreamInputSource
getInputStream
public java.io.InputStream getInputStream()
throws java.io.IOException
- Specified by:
getInputStream in interface InputSource- Overrides:
getInputStream in class StreamInputSource
java.io.IOException
close
public void close()
throws java.io.IOException
- Specified by:
close in interface InputSource- Overrides:
close in class StreamInputSource
java.io.IOException