org.apache.naming.resources
Class FileDirContext.FileResource
- FileDirContext
protected class FileDirContext.FileResource
This specialized resource implementation avoids opening the IputStream
to the file right away (which would put a lock on the file).
protected File | file - Associated file object.
|
protected long | length - File length.
|
file
protected File file
Associated file object.
length
protected long length
File length.
FileResource
public FileResource(File file)
streamContent
public InputStream streamContent()
throws IOException
Content accessor.
- streamContent in interface Resource
- InputStream
Copyright B) 2000-2003 Apache Software Foundation. All Rights Reserved.