org.apache.avalon.excalibur.monitor
クラス FileResource

java.lang.Object
  |
  +--org.apache.avalon.excalibur.monitor.Resource
        |
        +--org.apache.avalon.excalibur.monitor.StreamResource
              |
              +--org.apache.avalon.excalibur.monitor.FileResource
すべての実装インタフェース:
Modifiable

public class FileResource
extends StreamResource

Managed File based Resource. This is convenient when you want to dynamically set and get the information from the resource. For instance, the Resource does not need to be actively monitored if all access to the resource goes through this type of Resource. It can notify the change as soon as the Writer or OutputStream has been closed.

バージョン:
$Id: FileResource.java,v 1.2 2001/12/11 09:53:30 jefft Exp $
作成者:
Berin Loritsch

クラス org.apache.avalon.excalibur.monitor.Resource から継承したフィールド
m_eventSupport, m_previousModified, MODIFIED
 
コンストラクタの概要
FileResource(java.io.File resource)
           
FileResource(java.lang.String resource)
          Instantiate the FileResource
 
メソッドの概要
 java.io.Reader getResourceAsReader()
          Sets the resource value with a Writer
 java.io.InputStream getResourceAsStream()
          Sets the resource value with an OutputStream
 long lastModified()
          Determines the last time this resource was modified
 java.io.OutputStream setResourceAsStream()
          Sets the resource value with an OutputStream
 java.io.Writer setResourceAsWriter()
          Sets the resource value with a Writer
 
クラス org.apache.avalon.excalibur.monitor.StreamResource から継承したメソッド
streamClosedEvent
 
クラス org.apache.avalon.excalibur.monitor.Resource から継承したメソッド
addPropertyChangeListener, addPropertyChangeListener, addPropertyChangeListenersFrom, getResourceKey, hasListeners, hasListeners, removeAllPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListener, testModifiedAfter
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

FileResource

public FileResource(java.lang.String resource)
             throws java.lang.Exception
Instantiate the FileResource

FileResource

public FileResource(java.io.File resource)
             throws java.lang.Exception
メソッドの詳細

lastModified

public long lastModified()
Determines the last time this resource was modified
オーバーライド:
クラス Resource 内の lastModified

getResourceAsStream

public java.io.InputStream getResourceAsStream()
                                        throws java.io.IOException
Sets the resource value with an OutputStream
オーバーライド:
クラス StreamResource 内の getResourceAsStream

getResourceAsReader

public java.io.Reader getResourceAsReader()
                                   throws java.io.IOException
Sets the resource value with a Writer
オーバーライド:
クラス StreamResource 内の getResourceAsReader

setResourceAsStream

public java.io.OutputStream setResourceAsStream()
                                         throws java.io.IOException
Sets the resource value with an OutputStream
オーバーライド:
クラス StreamResource 内の setResourceAsStream

setResourceAsWriter

public java.io.Writer setResourceAsWriter()
                                   throws java.io.IOException
Sets the resource value with a Writer
オーバーライド:
クラス StreamResource 内の setResourceAsWriter


"Copyright ? 2001 Apache Jakarta Project. All Rights Reserved."