org.apache.avalon.excalibur.monitor
Class SourceResource
java.lang.Object
|
+--org.apache.avalon.excalibur.monitor.Resource
|
+--org.apache.avalon.excalibur.monitor.StreamResource
|
+--org.apache.avalon.excalibur.monitor.SourceResource
- All Implemented Interfaces:
- Modifiable
- public final class SourceResource
- extends StreamResource
- Version:
- $Id: SourceResource.java,v 1.2 2002/01/08 12:55:51 cziegeler Exp $
- Author:
- Carsten Ziegeler
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SourceResource
public SourceResource(Source source)
throws java.lang.Exception
- Instantiate the SourceResource
lastModified
public long lastModified()
- Determines the last time this resource was modified
- Overrides:
lastModified
in class Resource
getResourceAsStream
public java.io.InputStream getResourceAsStream()
throws java.io.IOException
- Sets the resource value with an OutputStream
- Overrides:
getResourceAsStream
in class StreamResource
getResourceAsReader
public java.io.Reader getResourceAsReader()
throws java.io.IOException
- Sets the resource value with a Writer
- Overrides:
getResourceAsReader
in class StreamResource
setResourceAsStream
public java.io.OutputStream setResourceAsStream()
throws java.io.IOException
- Sets the resource value with an OutputStream
- Overrides:
setResourceAsStream
in class StreamResource
setResourceAsWriter
public java.io.Writer setResourceAsWriter()
throws java.io.IOException
- Sets the resource value with a Writer
- Overrides:
setResourceAsWriter
in class StreamResource
Copyright © 2001 Apache Jakarta Project. All Rights Reserved.