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


Field Summary
 
Fields inherited from class anvil.parser.StreamInputSource
_input, _url
 
Fields inherited from interface anvil.server.Resource
RESOURCE_0
 
Constructor Summary
JarContainer.JarResource(Zone zone, java.util.jar.JarFile file, java.util.jar.JarEntry entry, java.lang.String contentType)
           
 
Method Summary
 void close()
           
 java.lang.String getContentType()
           
 java.io.InputStream getInputStream()
           
 long getLastModified()
           
 int getLength()
           
 java.lang.String getName()
           
 java.lang.String getPathinfo()
           
 java.net.URL getURL()
           
 boolean isDirectory()
           
 Resource[] list()
           
 void writeTo(java.io.OutputStream output)
           
 
Methods inherited from class anvil.parser.StreamInputSource
getCharacterEncoding, load
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface anvil.parser.InputSource
getCharacterEncoding, load
 

Constructor Detail

JarContainer.JarResource

public JarContainer.JarResource(Zone zone,
                                java.util.jar.JarFile file,
                                java.util.jar.JarEntry entry,
                                java.lang.String contentType)
Method Detail

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