| org.apache.cocoon.serialization.ElementProcessorSerializer
All known Subclasses: org.apache.cocoon.serialization.POIFSSerializer,
ElementProcessorSerializer | abstract public class ElementProcessorSerializer extends AbstractLogEnabled implements Serializer,Serviceable(Code) | | 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:
- String getMimeType()
- void endDocument()
- ElementProcessorFactory getElementProcessorFactory()
- void doPreInitialization(ElementProcessor processor)
author: Marc Johnson (marc_johnson27591@hotmail.com) author: Nicola Ken Barozzi (nicolaken@apache.org) version: $Id: ElementProcessorSerializer.java 523500 2007-03-28 23:06:39Z joerg $ |
Field Summary | |
protected ServiceManager | manager |
Method Summary | |
protected SAXException | SAXExceptionFactory(String message, Exception e) | protected SAXException | SAXExceptionFactory(String message) | public void | characters(char[] ch, int start, int length) Receive notification of character data. | public void | comment(char[] ch, int start, int length) Report an XML comment anywhere in the document. | abstract protected void | doPreInitialization(ElementProcessor processor) | public void | endCDATA() Report the end of a CDATA section. | public void | endDTD() Report the end of DTD declarations. | public void | endElement(String namespaceURI, String localName, String qName) Receive notification of the end of an element. | public void | endEntity(String name) Report the end of an entity. | public void | endPrefixMapping(String prefix) End the scope of a prefix-URI mapping. | abstract protected ElementProcessorFactory | getElementProcessorFactory() | protected OutputStream | getOutputStream() | public void | ignorableWhitespace(char[] ch, int start, int length) Receive notification of ignorable whitespace in element
content. | public void | processingInstruction(String target, String data) Receive notification of a processing instruction. | public void | service(ServiceManager manager) | public void | setDocumentLocator(Locator locator) Receive an object for locating the origin of SAX document
events. | public void | setOutputStream(OutputStream out) Set the OutputStream where the requested resource should be
serialized. | public boolean | shouldSetContentLength() Test if the component wants to set the content length. | public void | skippedEntity(String name) Receive notification of a skipped entity. | public void | startCDATA() Report the start of a CDATA section. | public void | startDTD(String name, String publicId, String systemId) Report the start of DTD declarations, if any. | public void | startDocument() Receive notification of the beginning of a document. | public void | startElement(String namespaceURI, String localName, String qName, Attributes atts) Receive notification of the beginning of an element. | public void | startEntity(String name) Report the beginning of some internal and external XML
entities. | public void | startPrefixMapping(String prefix, String uri) Begin the scope of a prefix-URI Namespace mapping. |
manager | protected ServiceManager manager(Code) | | |
ElementProcessorSerializer | public ElementProcessorSerializer()(Code) | | Constructor
|
SAXExceptionFactory | protected SAXException SAXExceptionFactory(String message, Exception e)(Code) | | Create a new SAXException
Parameters: message - the exception message Parameters: e - the underlying exception (may be null) new SAXException |
SAXExceptionFactory | protected SAXException SAXExceptionFactory(String message)(Code) | | Create a SAXException
Parameters: message - the exception message new SAXException |
characters | public void characters(char[] ch, int start, int length) throws SAXException(Code) | | Receive notification of character data.
Parameters: ch - the character array Parameters: start - the start index in ch Parameters: length - the length of the valid part of ch exception: SAXException - if anything goes wrong in processingthe character data |
comment | public void comment(char[] ch, int start, int length)(Code) | | Report an XML comment anywhere in the document. We don't really
care.
|
doPreInitialization | abstract protected void doPreInitialization(ElementProcessor processor) throws SAXException(Code) | | perform whatever pre-initialization seems good on the
ElementProcessor
Parameters: processor - the processor to be initialized exception: SAXException - on errors |
endCDATA | public void endCDATA()(Code) | | Report the end of a CDATA section. We don't really care.
|
endDTD | public void endDTD()(Code) | | Report the end of DTD declarations. We don't really care.
|
endEntity | public void endEntity(String name)(Code) | | Report the end of an entity. We don't really care.
|
endPrefixMapping | public void endPrefixMapping(String prefix)(Code) | | End the scope of a prefix-URI mapping. We don't really care.
|
getElementProcessorFactory | abstract protected ElementProcessorFactory getElementProcessorFactory()(Code) | | get the appropriate ElementProcessorFactory
an ElementProcessorFactory suitable for the file type |
ignorableWhitespace | public void ignorableWhitespace(char[] ch, int start, int length) throws SAXException(Code) | | Receive notification of ignorable whitespace in element
content.
Parameters: ch - the character array Parameters: start - the start index in ch Parameters: length - the length of the valid part of ch exception: SAXException - if anything goes wrong in processingthe character data |
processingInstruction | public void processingInstruction(String target, String data)(Code) | | Receive notification of a processing instruction. We don't
really care.
|
service | public void service(ServiceManager manager)(Code) | | |
setDocumentLocator | public void setDocumentLocator(Locator locator)(Code) | | Receive an object for locating the origin of SAX document
events.
Parameters: locator - the Locator object |
setOutputStream | public void setOutputStream(OutputStream out)(Code) | | Set the OutputStream where the requested resource should be
serialized.
Parameters: out - the OutputStream to which the serialized data willbe written |
shouldSetContentLength | public boolean shouldSetContentLength()(Code) | | Test if the component wants to set the content length.
false |
skippedEntity | public void skippedEntity(String name)(Code) | | Receive notification of a skipped entity. We don't really care.
|
startCDATA | public void startCDATA()(Code) | | Report the start of a CDATA section. We don't really care.
|
startDTD | public void startDTD(String name, String publicId, String systemId)(Code) | | Report the start of DTD declarations, if any. We don't really
care.
|
startDocument | public void startDocument()(Code) | | Receive notification of the beginning of a document.
|
startElement | public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException(Code) | | Receive notification of the beginning of an element.
Parameters: namespaceURI - the namespace this element is in Parameters: localName - the local name of the element Parameters: qName - the qualified name of the element Parameters: atts - the Attributes, if any, of the element exception: SAXException - if we cannot create an ElementProcessorto handle the element |
startEntity | public void startEntity(String name)(Code) | | Report the beginning of some internal and external XML
entities. We don't really care.
|
startPrefixMapping | public void startPrefixMapping(String prefix, String uri)(Code) | | Begin the scope of a prefix-URI Namespace mapping. We don't
really care.
|
|
|