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


Field Summary
 
Fields inherited from interface anvil.server.Resource
RESOURCE_0
 
Constructor Summary
DirContainer.DirResource(Zone zone, java.io.File dir, java.lang.String pathinfo)
           
 
Method Summary
 void close()
           
 java.nio.charset.Charset getCharacterEncoding()
           
 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()
           
 java.nio.ByteBuffer load()
           
 void writeTo(java.io.OutputStream output)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DirContainer.DirResource

public DirContainer.DirResource(Zone zone,
                                java.io.File dir,
                                java.lang.String pathinfo)
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

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