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 static 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. |
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.
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-2012 Apache Software Foundation. All Rights Reserved.