| 
 | Apache Tomcat 6.0.53 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.naming.resources.Resource
org.apache.naming.resources.FileDirContext.FileResource
protected class FileDirContext.FileResource
This specialized resource implementation avoids opening the InputStream to the file right away (which would put a lock on the file).
| Field Summary | |
|---|---|
| protected  java.io.File | fileAssociated file object. | 
| protected  long | lengthFile length. | 
| Fields inherited from class org.apache.naming.resources.Resource | 
|---|
| binaryContent, inputStream | 
| Constructor Summary | |
|---|---|
| FileDirContext.FileResource(java.io.File file) | |
| Method Summary | |
|---|---|
|  java.io.InputStream | streamContent()Content accessor. | 
| Methods inherited from class org.apache.naming.resources.Resource | 
|---|
| getContent, setContent, setContent | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
protected java.io.File file
protected long length
| Constructor Detail | 
|---|
public FileDirContext.FileResource(java.io.File file)
| Method Detail | 
|---|
public java.io.InputStream streamContent()
                                  throws java.io.IOException
streamContent in class Resourcejava.io.IOException| 
 | Apache Tomcat 6.0.53 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||