|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.cocoon.components.source.AbstractSAXSource
public abstract class AbstractSAXSource
This abstract class provides convenience methods to implement a SAX based Source. Implement toSAX() and getSystemId() and optionally override getLastModified() and getContentLength() to obtain a valid Source implementation.
| Field Summary | |
|---|---|
protected Logger |
log
Deprecated. The Logger instance |
protected ComponentManager |
manager
Deprecated. The ComponentManager instance |
| Constructor Summary | |
|---|---|
AbstractSAXSource(Environment environment,
ComponentManager manager,
Logger logger)
Deprecated. The constructor. |
|
| Method Summary | |
|---|---|
long |
getContentLength()
Deprecated. Override this method to set the Content Length |
InputSource |
getInputSource()
Deprecated. Get an InputSource for the given URL. |
InputStream |
getInputStream()
Deprecated. Get an InputSource for the given URL. |
long |
getLastModified()
Deprecated. Override this method to set the Last Modification date |
abstract String |
getSystemId()
Deprecated. Implement this method to set the unique identifier. |
abstract void |
toSAX(ContentHandler handler)
Deprecated. Implement this method to obtain SAX events. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.avalon.excalibur.pool.Recyclable |
|---|
recycle |
| Field Detail |
|---|
protected Logger log
protected ComponentManager manager
| Constructor Detail |
|---|
public AbstractSAXSource(Environment environment,
ComponentManager manager,
Logger logger)
environment - the Cocoon Environment.manager - an Avalon Component Managerlogger - A LogKit logger| Method Detail |
|---|
public InputStream getInputStream()
throws ProcessingException,
IOException
getInputStream in interface SourceProcessingException
IOException
public InputSource getInputSource()
throws ProcessingException,
IOException
getInputSource in interface SourceInputSource value
ProcessingException - if an error occurs
IOException - if an error occurs
public abstract void toSAX(ContentHandler handler)
throws SAXException
toSAX in interface XMLizableSAXExceptionpublic abstract String getSystemId()
getSystemId in interface Sourcepublic long getContentLength()
getContentLength in interface Sourcepublic long getLastModified()
getLastModified in interface Source
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||