org.outerj.daisy.frontend.util
Class AltFileResource

java.lang.Object
  extended by org.apache.avalon.excalibur.monitor.Resource
      extended by org.apache.avalon.excalibur.monitor.StreamResource
          extended by 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.


Field Summary
 
Fields inherited from class org.apache.avalon.excalibur.monitor.Resource
m_eventSupport, m_previousModified, MODIFIED
 
Constructor Summary
AltFileResource(java.io.File file)
           
 
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, 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
 

Constructor Detail

AltFileResource

public AltFileResource(java.io.File file)
                throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

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.