|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.avalon.framework.logger.AbstractLogEnabled org.apache.cocoon.serialization.ElementProcessorSerializer
public abstract class ElementProcessorSerializer
An implementation of nearly all of the methods included in the org.apache.poi.serialization.Serializer interface This is an abstract class. Concrete extensions need to implement the following methods:
Field Summary | |
---|---|
protected ServiceManager |
manager
|
Fields inherited from interface org.apache.cocoon.serialization.Serializer |
---|
ROLE |
Constructor Summary | |
---|---|
ElementProcessorSerializer()
Constructor |
Method Summary | |
---|---|
void |
characters(char[] ch,
int start,
int length)
Receive notification of character data. |
void |
comment(char[] ch,
int start,
int length)
Report an XML comment anywhere in the document. |
protected abstract void |
doPreInitialization(ElementProcessor processor)
perform whatever pre-initialization seems good on the ElementProcessor |
void |
endCDATA()
Report the end of a CDATA section. |
void |
endDTD()
Report the end of DTD declarations. |
void |
endElement(String namespaceURI,
String localName,
String qName)
Receive notification of the end of an element. |
void |
endEntity(String name)
Report the end of an entity. |
void |
endPrefixMapping(String prefix)
End the scope of a prefix-URI mapping. |
protected abstract ElementProcessorFactory |
getElementProcessorFactory()
get the appropriate ElementProcessorFactory |
protected OutputStream |
getOutputStream()
|
void |
ignorableWhitespace(char[] ch,
int start,
int length)
Receive notification of ignorable whitespace in element content. |
void |
processingInstruction(String target,
String data)
Receive notification of a processing instruction. |
protected SAXException |
SAXExceptionFactory(String message)
Create a SAXException |
protected SAXException |
SAXExceptionFactory(String message,
Exception e)
Create a new SAXException |
void |
service(ServiceManager manager)
|
void |
setDocumentLocator(Locator locator)
Receive an object for locating the origin of SAX document events. |
void |
setOutputStream(OutputStream out)
Set the OutputStream where the requested resource should be serialized. |
boolean |
shouldSetContentLength()
Test if the component wants to set the content length. |
void |
skippedEntity(String name)
Receive notification of a skipped entity. |
void |
startCDATA()
Report the start of a CDATA section. |
void |
startDocument()
Receive notification of the beginning of a document. |
void |
startDTD(String name,
String publicId,
String systemId)
Report the start of DTD declarations, if any. |
void |
startElement(String namespaceURI,
String localName,
String qName,
Attributes atts)
Receive notification of the beginning of an element. |
void |
startEntity(String name)
Report the beginning of some internal and external XML entities. |
void |
startPrefixMapping(String prefix,
String uri)
Begin the scope of a prefix-URI Namespace mapping. |
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled |
---|
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.xml.sax.ContentHandler |
---|
endDocument |
Methods inherited from interface org.apache.cocoon.sitemap.SitemapOutputComponent |
---|
getMimeType |
Field Detail |
---|
protected ServiceManager manager
Constructor Detail |
---|
public ElementProcessorSerializer()
Method Detail |
---|
public void service(ServiceManager manager)
service
in interface Serviceable
protected abstract ElementProcessorFactory getElementProcessorFactory()
protected abstract void doPreInitialization(ElementProcessor processor) throws SAXException
processor
- the processor to be initialized
SAXException
- on errorsprotected OutputStream getOutputStream()
protected SAXException SAXExceptionFactory(String message, Exception e)
message
- the exception messagee
- the underlying exception (may be null)
protected SAXException SAXExceptionFactory(String message)
message
- the exception message
public void setOutputStream(OutputStream out)
setOutputStream
in interface SitemapOutputComponent
out
- the OutputStream to which the serialized data will
be writtenpublic boolean shouldSetContentLength()
shouldSetContentLength
in interface SitemapOutputComponent
public void comment(char[] ch, int start, int length)
comment
in interface LexicalHandler
public void endCDATA()
endCDATA
in interface LexicalHandler
public void endDTD()
endDTD
in interface LexicalHandler
public void endEntity(String name)
endEntity
in interface LexicalHandler
public void startCDATA()
startCDATA
in interface LexicalHandler
public void startDTD(String name, String publicId, String systemId)
startDTD
in interface LexicalHandler
public void startEntity(String name)
startEntity
in interface LexicalHandler
public void characters(char[] ch, int start, int length) throws SAXException
characters
in interface ContentHandler
ch
- the character arraystart
- the start index in chlength
- the length of the valid part of ch
SAXException
- if anything goes wrong in processing
the character datapublic void endElement(String namespaceURI, String localName, String qName) throws SAXException
endElement
in interface ContentHandler
SAXException
- on any errors processing the event.public void endPrefixMapping(String prefix)
endPrefixMapping
in interface ContentHandler
public void ignorableWhitespace(char[] ch, int start, int length) throws SAXException
ignorableWhitespace
in interface ContentHandler
ch
- the character arraystart
- the start index in chlength
- the length of the valid part of ch
SAXException
- if anything goes wrong in processing
the character datapublic void processingInstruction(String target, String data)
processingInstruction
in interface ContentHandler
public void setDocumentLocator(Locator locator)
setDocumentLocator
in interface ContentHandler
locator
- the Locator objectpublic void skippedEntity(String name)
skippedEntity
in interface ContentHandler
public void startDocument()
startDocument
in interface ContentHandler
public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException
startElement
in interface ContentHandler
namespaceURI
- the namespace this element is inlocalName
- the local name of the elementqName
- the qualified name of the elementatts
- the Attributes, if any, of the element
SAXException
- if we cannot create an ElementProcessor
to handle the elementpublic void startPrefixMapping(String prefix, String uri)
startPrefixMapping
in interface ContentHandler
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |