|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
|
+--org.apache.avalon.framework.logger.AbstractLoggable
|
+--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 org.apache.avalon.framework.component.ComponentManager |
manager
Component 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. |
void |
compose(org.apache.avalon.framework.component.ComponentManager manager)
|
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(java.lang.String ignored_namespaceURI,
java.lang.String ignored_localName,
java.lang.String ignored_qName)
Receive notification of the end of an element. |
void |
endEntity(java.lang.String ignored_name)
Report the end of an entity. |
void |
endPrefixMapping(java.lang.String ignored_prefix)
End the scope of a prefix-URI mapping. |
protected abstract ElementProcessorFactory |
getElementProcessorFactory()
get the appropriate ElementProcessorFactory |
protected java.io.OutputStream |
getOutputStream()
|
void |
ignorableWhitespace(char[] ch,
int start,
int length)
Receive notification of ignorable whitespace in element content. |
void |
processingInstruction(java.lang.String ignored_target,
java.lang.String ignored_data)
Receive notification of a processing instruction. |
protected org.xml.sax.SAXException |
SAXExceptionFactory(java.lang.String message)
Create a SAXException |
protected org.xml.sax.SAXException |
SAXExceptionFactory(java.lang.String message,
java.lang.Exception e)
Create a new SAXException |
void |
setDocumentLocator(org.xml.sax.Locator locator)
Receive an object for locating the origin of SAX document events. |
void |
setOutputStream(java.io.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(java.lang.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(java.lang.String ignored_name,
java.lang.String ignored_publicId,
java.lang.String ignored_systemId)
Report the start of DTD declarations, if any. |
void |
startElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes atts)
Receive notification of the beginning of an element. |
void |
startEntity(java.lang.String ignored_name)
Report the beginning of some internal and external XML entities. |
void |
startPrefixMapping(java.lang.String ignored_prefix,
java.lang.String ignored_uri)
Begin the scope of a prefix-URI Namespace mapping. |
| Methods inherited from class org.apache.avalon.framework.logger.AbstractLoggable |
getLogger, setLogger, 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 org.apache.avalon.framework.component.ComponentManager manager
| Constructor Detail |
public ElementProcessorSerializer()
| Method Detail |
public void compose(org.apache.avalon.framework.component.ComponentManager manager)
compose in interface org.apache.avalon.framework.component.Composableprotected abstract ElementProcessorFactory getElementProcessorFactory()
protected abstract void doPreInitialization(ElementProcessor processor)
throws org.xml.sax.SAXException
processor - the processor to be initializedorg.xml.sax.SAXException - on errorsprotected java.io.OutputStream getOutputStream()
protected org.xml.sax.SAXException SAXExceptionFactory(java.lang.String message,
java.lang.Exception e)
message - the exception messagee - the underlying exception (may be null)protected org.xml.sax.SAXException SAXExceptionFactory(java.lang.String message)
message - the exception messagepublic void setOutputStream(java.io.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 org.xml.sax.ext.LexicalHandlerignored_ch - ignored_start - ignored_length - public void endCDATA()
endCDATA in interface org.xml.sax.ext.LexicalHandlerpublic void endDTD()
endDTD in interface org.xml.sax.ext.LexicalHandlerpublic void endEntity(java.lang.String ignored_name)
endEntity in interface org.xml.sax.ext.LexicalHandlerignored_name - public void startCDATA()
startCDATA in interface org.xml.sax.ext.LexicalHandler
public void startDTD(java.lang.String ignored_name,
java.lang.String ignored_publicId,
java.lang.String ignored_systemId)
startDTD in interface org.xml.sax.ext.LexicalHandlerignored_name - ignored_publicId - ignored_systemId - public void startEntity(java.lang.String ignored_name)
startEntity in interface org.xml.sax.ext.LexicalHandlerignored_name -
public void characters(char[] ch,
int start,
int length)
throws org.xml.sax.SAXException
characters in interface org.xml.sax.ContentHandlerch - the character arraystart - the start index in chlength - the length of the valid part of chorg.xml.sax.SAXException - if anything goes wrong in processing
the character data
public void endElement(java.lang.String ignored_namespaceURI,
java.lang.String ignored_localName,
java.lang.String ignored_qName)
throws org.xml.sax.SAXException
endElement in interface org.xml.sax.ContentHandlerignored_namespaceURI - ignored_localName - ignored_qName - org.xml.sax.SAXException - on any errors processing the event.public void endPrefixMapping(java.lang.String ignored_prefix)
endPrefixMapping in interface org.xml.sax.ContentHandlerignored_prefix -
public void ignorableWhitespace(char[] ch,
int start,
int length)
throws org.xml.sax.SAXException
ignorableWhitespace in interface org.xml.sax.ContentHandlerch - the character arraystart - the start index in chlength - the length of the valid part of chorg.xml.sax.SAXException - if anything goes wrong in processing
the character data
public void processingInstruction(java.lang.String ignored_target,
java.lang.String ignored_data)
processingInstruction in interface org.xml.sax.ContentHandlerignored_target - ignored_data - public void setDocumentLocator(org.xml.sax.Locator locator)
setDocumentLocator in interface org.xml.sax.ContentHandlerlocator - the Locator objectpublic void skippedEntity(java.lang.String ignored_name)
skippedEntity in interface org.xml.sax.ContentHandlerignored_name - public void startDocument()
startDocument in interface org.xml.sax.ContentHandler
public void startElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes atts)
throws org.xml.sax.SAXException
startElement in interface org.xml.sax.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 elementorg.xml.sax.SAXException - if we cannot create an ElementProcessor
to handle the element
public void startPrefixMapping(java.lang.String ignored_prefix,
java.lang.String ignored_uri)
startPrefixMapping in interface org.xml.sax.ContentHandlerignored_prefix - ignored_uri -
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||