anvil.server
Class DirContainer.FileResource

java.lang.Object
  |
  +--anvil.parser.FileInputSource
        |
        +--anvil.server.DirContainer.FileResource
All Implemented Interfaces:
InputSource, Resource
Enclosing class:
DirContainer

public static class DirContainer.FileResource
extends FileInputSource
implements Resource


Field Summary
 
Fields inherited from class anvil.parser.FileInputSource
_file, _url
 
Fields inherited from interface anvil.server.Resource
RESOURCE_0
 
Constructor Summary
DirContainer.FileResource(java.io.File file, java.lang.String pathinfo, java.lang.String contentType)
           
 
Method Summary
 java.lang.String getContentType()
           
 java.lang.String getName()
           
 java.lang.String getPathinfo()
           
 boolean isDirectory()
           
 Resource[] list()
           
 void writeTo(java.io.OutputStream output)
           
 
Methods inherited from class anvil.parser.FileInputSource
close, getCharacterEncoding, getInputStream, getLastModified, getLength, getURL, 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
close, getCharacterEncoding, getInputStream, getLastModified, getLength, getURL, load
 

Constructor Detail

DirContainer.FileResource

public DirContainer.FileResource(java.io.File file,
                                 java.lang.String pathinfo,
                                 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

getContentType

public java.lang.String getContentType()
Specified by:
getContentType in interface Resource

isDirectory

public boolean isDirectory()
Specified by:
isDirectory in interface Resource

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