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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DirContainer.FileResource
public DirContainer.FileResource(java.io.File file,
java.lang.String pathinfo,
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
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