org.apache.naming.resources

Class FileDirContext.FileResource

protected class FileDirContext.FileResource extends Resource

This specialized resource implementation avoids opening the IputStream to the file right away (which would put a lock on the file).
Field Summary
protected Filefile
Associated file object.
protected longlength
File length.
Constructor Summary
FileResource(File file)
Method Summary
InputStreamstreamContent()
Content accessor.

Field Detail

file

protected File file
Associated file object.

length

protected long length
File length.

Constructor Detail

FileResource

public FileResource(File file)

Method Detail

streamContent

public InputStream streamContent()
Content accessor.

Returns: InputStream

Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.