|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.serialization.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
Service 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[] ignored_ch,
int ignored_start,
int ignored_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 ignored_namespaceURI,
String ignored_localName,
String ignored_qName)
Receive notification of the end of an element. |
void |
endEntity(String ignored_name)
Report the end of an entity. |
void |
endPrefixMapping(String ignored_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 ignored_target,
String ignored_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 ignored_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 ignored_name,
String ignored_publicId,
String ignored_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 ignored_name)
Report the beginning of some internal and external XML entities. |
void |
startPrefixMapping(String ignored_prefix,
String ignored_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[] ignored_ch, int ignored_start, int ignored_length)
comment
in interface LexicalHandler
ignored_ch
- ignored_start
- ignored_length
- public void endCDATA()
endCDATA
in interface LexicalHandler
public void endDTD()
endDTD
in interface LexicalHandler
public void endEntity(String ignored_name)
endEntity
in interface LexicalHandler
ignored_name
- public void startCDATA()
startCDATA
in interface LexicalHandler
public void startDTD(String ignored_name, String ignored_publicId, String ignored_systemId)
startDTD
in interface LexicalHandler
ignored_name
- ignored_publicId
- ignored_systemId
- public void startEntity(String ignored_name)
startEntity
in interface LexicalHandler
ignored_name
- 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 ignored_namespaceURI, String ignored_localName, String ignored_qName) throws SAXException
endElement
in interface ContentHandler
ignored_namespaceURI
- ignored_localName
- ignored_qName
-
SAXException
- on any errors processing the event.public void endPrefixMapping(String ignored_prefix)
endPrefixMapping
in interface ContentHandler
ignored_prefix
- 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 ignored_target, String ignored_data)
processingInstruction
in interface ContentHandler
ignored_target
- ignored_data
- public void setDocumentLocator(Locator locator)
setDocumentLocator
in interface ContentHandler
locator
- the Locator objectpublic void skippedEntity(String ignored_name)
skippedEntity
in interface ContentHandler
ignored_name
- 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 ignored_prefix, String ignored_uri)
startPrefixMapping
in interface ContentHandler
ignored_prefix
- ignored_uri
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |