|
|||||||||||
| 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 Serviceableprotected 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 SitemapOutputComponentout - 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 LexicalHandlerignored_ch - ignored_start - ignored_length - public void endCDATA()
endCDATA in interface LexicalHandlerpublic void endDTD()
endDTD in interface LexicalHandlerpublic void endEntity(String ignored_name)
endEntity in interface LexicalHandlerignored_name - public void startCDATA()
startCDATA in interface LexicalHandler
public void startDTD(String ignored_name,
String ignored_publicId,
String ignored_systemId)
startDTD in interface LexicalHandlerignored_name - ignored_publicId - ignored_systemId - public void startEntity(String ignored_name)
startEntity in interface LexicalHandlerignored_name -
public void characters(char[] ch,
int start,
int length)
throws SAXException
characters in interface ContentHandlerch - 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 data
public void endElement(String ignored_namespaceURI,
String ignored_localName,
String ignored_qName)
throws SAXException
endElement in interface ContentHandlerignored_namespaceURI - ignored_localName - ignored_qName -
SAXException - on any errors processing the event.public void endPrefixMapping(String ignored_prefix)
endPrefixMapping in interface ContentHandlerignored_prefix -
public void ignorableWhitespace(char[] ch,
int start,
int length)
throws SAXException
ignorableWhitespace in interface ContentHandlerch - 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 data
public void processingInstruction(String ignored_target,
String ignored_data)
processingInstruction in interface ContentHandlerignored_target - ignored_data - public void setDocumentLocator(Locator locator)
setDocumentLocator in interface ContentHandlerlocator - the Locator objectpublic void skippedEntity(String ignored_name)
skippedEntity in interface ContentHandlerignored_name - public void startDocument()
startDocument in interface ContentHandler
public void startElement(String namespaceURI,
String localName,
String qName,
Attributes atts)
throws SAXException
startElement in interface ContentHandlernamespaceURI - 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 element
public void startPrefixMapping(String ignored_prefix,
String ignored_uri)
startPrefixMapping in interface ContentHandlerignored_prefix - ignored_uri -
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||