org.apache.avalon.excalibur.source
Class ResourceSource
java.lang.Object
|
+--org.apache.avalon.excalibur.source.ResourceSource
- All Implemented Interfaces:
- org.apache.avalon.framework.component.Composable, Source, XMLizable
- public final class ResourceSource
- extends java.lang.Object
- implements org.apache.avalon.framework.component.Composable, Source, XMLizable
Description of a source which is described by the resource protocol
which gets a resource from the classloader.
- Version:
- CVS $Revision: 1.2 $ $Date: 2002/01/08 12:55:51 $
- Author:
- Carsten Ziegeler
Constructor Summary |
ResourceSource(java.lang.String systemId)
Constructor |
Method Summary |
void |
compose(org.apache.avalon.framework.component.ComponentManager manager)
|
java.io.InputStream |
getInputStream()
Return an InputStream object to read from the source. |
java.lang.String |
getSystemId()
Return the unique identifer for this source |
void |
toSAX(org.xml.sax.ContentHandler handler)
Stream content to a content handler or to an XMLConsumer. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResourceSource
public ResourceSource(java.lang.String systemId)
- Constructor
compose
public void compose(org.apache.avalon.framework.component.ComponentManager manager)
- Specified by:
compose
in interface org.apache.avalon.framework.component.Composable
getInputStream
public java.io.InputStream getInputStream()
throws java.io.IOException
- Return an
InputStream
object to read from the source.
- Specified by:
getInputStream
in interface Source
toSAX
public void toSAX(org.xml.sax.ContentHandler handler)
throws org.xml.sax.SAXException
- Stream content to a content handler or to an XMLConsumer.
- Specified by:
toSAX
in interface XMLizable
- Throws:
ResourceNotFoundException
- if file not found or
HTTP location does not exist.org.xml.sax.SAXException
- if failed to parse source document.
getSystemId
public java.lang.String getSystemId()
- Return the unique identifer for this source
- Specified by:
getSystemId
in interface Source
Copyright © 2001 Apache Jakarta Project. All Rights Reserved.