|
||||||||||
| 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 | |
|---|---|
private org.apache.excalibur.source.Source |
m_source
The wrapped source object |
private org.apache.excalibur.source.SourceValidity |
m_validity
The last validity object |
| Fields inherited from class org.apache.avalon.excalibur.monitor.Resource |
|---|
m_eventSupport, m_previousModified, MODIFIED |
| Constructor Summary | |
|---|---|
SourceResource(org.apache.excalibur.source.Source source)
Instantiate the SourceResource |
|
| Method Summary | |
|---|---|
java.io.Reader |
getResourceAsReader()
Sets the resource value with a Writer |
java.io.InputStream |
getResourceAsStream()
Sets the resource value with an OutputStream |
org.apache.excalibur.source.Source |
getSource()
|
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 |
| 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 |
| Field Detail |
|---|
private final org.apache.excalibur.source.Source m_source
private org.apache.excalibur.source.SourceValidity m_validity
| Constructor Detail |
|---|
public SourceResource(org.apache.excalibur.source.Source source)
throws java.lang.Exception
java.lang.Exception| Method Detail |
|---|
public long lastModified()
lastModified in interface ModifiablelastModified in class Resource
public java.io.InputStream getResourceAsStream()
throws java.io.IOException
getResourceAsStream in class StreamResourcejava.io.IOException
public java.io.Reader getResourceAsReader()
throws java.io.IOException
getResourceAsReader in class StreamResourcejava.io.IOException
public java.io.OutputStream setResourceAsStream()
throws java.io.IOException
setResourceAsStream in class StreamResourcejava.io.IOException
public java.io.Writer setResourceAsWriter()
throws java.io.IOException
setResourceAsWriter in class StreamResourcejava.io.IOExceptionpublic org.apache.excalibur.source.Source getSource()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||