org.apache.avalon.excalibur.monitor
Class FileResource

java.lang.Object
  |
  +--org.apache.avalon.excalibur.monitor.Resource
        |
        +--org.apache.avalon.excalibur.monitor.StreamResource
              |
              +--org.apache.avalon.excalibur.monitor.FileResource
All Implemented Interfaces:
Modifiable

public synchronized class FileResource
extends StreamResource


Fields inherited from class org.apache.avalon.excalibur.monitor.Resource
m_eventSupport, m_previousModified, MODIFIED
 
Constructor Summary
FileResource(java.io.File)
           
FileResource(java.lang.String)
           
 
Method Summary
 java.io.Reader getResourceAsReader()
           
 java.io.InputStream getResourceAsStream()
           
 long lastModified()
           
 java.io.OutputStream setResourceAsStream()
           
 java.io.Writer setResourceAsWriter()
           
 
Methods inherited from class org.apache.avalon.excalibur.monitor.StreamResource
streamClosedEvent
 
Methods inherited from class org.apache.avalon.excalibur.monitor.Resource
addPropertyChangeListener, addPropertyChangeListener, addPropertyChangeListenersFrom, getResourceKey, hasListeners, hasListeners, removeAllPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListener, testModifiedAfter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileResource

public FileResource(java.lang.String)
             throws java.lang.Exception

FileResource

public FileResource(java.io.File)
             throws java.lang.Exception
Method Detail

lastModified

public long lastModified()
Overrides:
lastModified in class Resource

getResourceAsStream

public java.io.InputStream getResourceAsStream()
                                        throws java.io.IOException
Overrides:
getResourceAsStream in class StreamResource

getResourceAsReader

public java.io.Reader getResourceAsReader()
                                   throws java.io.IOException
Overrides:
getResourceAsReader in class StreamResource

setResourceAsStream

public java.io.OutputStream setResourceAsStream()
                                         throws java.io.IOException
Overrides:
setResourceAsStream in class StreamResource

setResourceAsWriter

public java.io.Writer setResourceAsWriter()
                                   throws java.io.IOException
Overrides:
setResourceAsWriter in class StreamResource


Copyright 2001 Apache Jakarta Project. All Rights Reserved.