anvil.server
Class DirContainer.DirResource
java.lang.Object
|
+--anvil.server.DirContainer.DirResource
- All Implemented Interfaces:
- InputSource, Resource
- Enclosing class:
- DirContainer
- public static class DirContainer.DirResource
- extends java.lang.Object
- implements Resource
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DirContainer.DirResource
public DirContainer.DirResource(Zone zone,
java.io.File dir,
java.lang.String pathinfo)
getName
public java.lang.String getName()
- Specified by:
getName in interface Resource
getPathinfo
public java.lang.String getPathinfo()
- Specified by:
getPathinfo in interface Resource
list
public Resource[] list()
throws java.io.IOException
- Specified by:
list in interface Resource
java.io.IOException
getURL
public java.net.URL getURL()
- Specified by:
getURL in interface InputSource
getContentType
public java.lang.String getContentType()
- Specified by:
getContentType in interface Resource
isDirectory
public boolean isDirectory()
- Specified by:
isDirectory in interface Resource
getLastModified
public long getLastModified()
- Specified by:
getLastModified in interface InputSource
getLength
public int getLength()
- Specified by:
getLength in interface InputSource
getCharacterEncoding
public java.nio.charset.Charset getCharacterEncoding()
- Specified by:
getCharacterEncoding in interface InputSource
getInputStream
public java.io.InputStream getInputStream()
throws java.io.IOException
- Specified by:
getInputStream in interface InputSource
java.io.IOException
load
public java.nio.ByteBuffer load()
throws java.io.IOException
- Specified by:
load in interface InputSource
java.io.IOException
writeTo
public void writeTo(java.io.OutputStream output)
throws java.io.IOException
- Specified by:
writeTo in interface Resource
java.io.IOException
close
public void close()
- Specified by:
close in interface InputSource