org.apache.naming.resources
Class FileDirContext.FileResource
java.lang.Object
org.apache.naming.resources.Resource
org.apache.naming.resources.FileDirContext.FileResource
- Enclosing class:
- FileDirContext
protected class FileDirContext.FileResource
- extends Resource
This specialized resource implementation avoids opening the InputStream
to the file right away (which would put a lock on the file).
Field Summary |
protected File |
file
Associated file object. |
protected long |
length
File length. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
file
protected File file
- Associated file object.
length
protected long length
- File length.
FileDirContext.FileResource
public FileDirContext.FileResource(File file)
streamContent
public InputStream streamContent()
throws IOException
- Content accessor.
- Overrides:
streamContent
in class Resource
- Returns:
- InputStream
- Throws:
IOException
Copyright © 2000-2010 Apache Software Foundation. All Rights Reserved.