|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.avalon.excalibur.monitor.Resource
org.apache.avalon.excalibur.monitor.StreamResource
org.apache.avalon.excalibur.monitor.SourceResource
public final class SourceResource
| Field Summary |
|---|
| Fields inherited from class org.apache.avalon.excalibur.monitor.Resource |
|---|
m_eventSupport, m_previousModified, MODIFIED |
| Constructor Summary | |
|---|---|
SourceResource(Source source)
Instantiate the SourceResource |
|
| Method Summary | |
|---|---|
Reader |
getResourceAsReader()
Sets the resource value with a Writer |
InputStream |
getResourceAsStream()
Sets the resource value with an OutputStream |
Source |
getSource()
|
long |
lastModified()
Determines the last time this resource was modified |
OutputStream |
setResourceAsStream()
Sets the resource value with an OutputStream |
Writer |
setResourceAsWriter()
Sets the resource value with a Writer |
| 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 |
|---|
public SourceResource(Source source)
throws Exception
Exception| Method Detail |
|---|
public long lastModified()
lastModified in interface ModifiablelastModified in class Resource
public InputStream getResourceAsStream()
throws IOException
getResourceAsStream in class StreamResourceIOException
public Reader getResourceAsReader()
throws IOException
getResourceAsReader in class StreamResourceIOException
public OutputStream setResourceAsStream()
throws IOException
setResourceAsStream in class StreamResourceIOException
public Writer setResourceAsWriter()
throws IOException
setResourceAsWriter in class StreamResourceIOExceptionpublic Source getSource()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||