org.apache.naming.resources
クラス FileDirContext.FileResource

java.lang.Object
  |
  +--org.apache.naming.resources.Resource
        |
        +--org.apache.naming.resources.FileDirContext.FileResource
含まれているクラス:
FileDirContext

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).


フィールドの概要
protected  java.io.File file
          Associated file object.
protected  long length
          File length.
 
クラス org.apache.naming.resources.Resource から継承したフィールド
binaryContent, inputStream
 
コンストラクタの概要
FileDirContext.FileResource(java.io.File file)
           
 
メソッドの概要
 java.io.InputStream streamContent()
          Content accessor.
 
クラス org.apache.naming.resources.Resource から継承したメソッド
getContent, setContent, setContent
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

file

protected java.io.File file
Associated file object.

length

protected long length
File length.
コンストラクタの詳細

FileDirContext.FileResource

public FileDirContext.FileResource(java.io.File file)
メソッドの詳細

streamContent

public java.io.InputStream streamContent()
                                  throws java.io.IOException
Content accessor.
オーバーライド:
クラス Resource 内の streamContent
戻り値:
InputStream


Copyright ? 2000-2001 Apache Software Foundation. All Rights Reserved.