public abstract class StreamResource extends Resource
m_eventSupport, m_previousModified, MODIFIED| Constructor and Description |
|---|
StreamResource(java.lang.String location)
Required constructor.
|
| Modifier and Type | Method and Description |
|---|---|
abstract java.io.Reader |
getResourceAsReader()
Get the Resource contents as a Reader.
|
abstract java.io.InputStream |
getResourceAsStream()
Get the Resource contents as an InputStream.
|
abstract java.io.OutputStream |
setResourceAsStream()
Set the Resource contents as an OutputStream.
|
abstract java.io.Writer |
setResourceAsWriter()
Set the Resource contents as a Writer.
|
protected void |
streamClosedEvent()
Automatically handle the streamClosedEvent from the ResourceOutputStream
and ResourceWriter.
|
addPropertyChangeListener, addPropertyChangeListener, addPropertyChangeListenersFrom, fireAndSetModifiedTime, getEventSupport, getPreviousModified, getResourceKey, hasListeners, hasListeners, lastModified, removeAllPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListener, setPreviousModified, testModifiedAfter, toStringpublic StreamResource(java.lang.String location)
throws java.lang.Exception
String location is transformed by
the specific resource monitor. For instance, a FileResource will be able
to convert a string representation of a path to the proper File object.java.lang.Exceptionpublic abstract java.io.InputStream getResourceAsStream()
throws java.io.IOException
java.io.IOExceptionpublic abstract java.io.Reader getResourceAsReader()
throws java.io.IOException
java.io.IOExceptionpublic abstract java.io.OutputStream setResourceAsStream()
throws java.io.IOException
java.io.IOExceptionpublic abstract java.io.Writer setResourceAsWriter()
throws java.io.IOException
java.io.IOExceptionprotected void streamClosedEvent()