org.outerj.daisy.frontend.util
Class AltFileResource
java.lang.Object
org.apache.avalon.excalibur.monitor.Resource
org.apache.avalon.excalibur.monitor.StreamResource
org.outerj.daisy.frontend.util.AltFileResource
- All Implemented Interfaces:
- org.apache.avalon.excalibur.monitor.Modifiable
public class AltFileResource
- extends org.apache.avalon.excalibur.monitor.StreamResource
A file resource for excalibur's monitor that also detects
file removals.
| Fields inherited from class org.apache.avalon.excalibur.monitor.Resource |
m_eventSupport, m_previousModified, MODIFIED |
| Methods inherited from class org.apache.avalon.excalibur.monitor.StreamResource |
streamClosedEvent |
| Methods inherited from class org.apache.avalon.excalibur.monitor.Resource |
addPropertyChangeListener, addPropertyChangeListener, addPropertyChangeListenersFrom, fireAndSetModifiedTime, getEventSupport, getPreviousModified, getResourceKey, hasListeners, hasListeners, removeAllPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListener, setPreviousModified, testModifiedAfter, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
AltFileResource
public AltFileResource(java.io.File file)
throws java.lang.Exception
- Throws:
java.lang.Exception
lastModified
public long lastModified()
- Specified by:
lastModified in interface org.apache.avalon.excalibur.monitor.Modifiable- Specified by:
lastModified in class org.apache.avalon.excalibur.monitor.Resource
getResourceAsStream
public java.io.InputStream getResourceAsStream()
throws java.io.IOException
- Specified by:
getResourceAsStream in class org.apache.avalon.excalibur.monitor.StreamResource
- Throws:
java.io.IOException
getResourceAsReader
public java.io.Reader getResourceAsReader()
throws java.io.IOException
- Specified by:
getResourceAsReader in class org.apache.avalon.excalibur.monitor.StreamResource
- Throws:
java.io.IOException
setResourceAsStream
public java.io.OutputStream setResourceAsStream()
throws java.io.IOException
- Specified by:
setResourceAsStream in class org.apache.avalon.excalibur.monitor.StreamResource
- Throws:
java.io.IOException
setResourceAsWriter
public java.io.Writer setResourceAsWriter()
throws java.io.IOException
- Specified by:
setResourceAsWriter in class org.apache.avalon.excalibur.monitor.StreamResource
- Throws:
java.io.IOException
Copyright © -2006 . All Rights Reserved.