| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.cocoon.components.sax.AbstractXMLByteStreamCompiler
public abstract class AbstractXMLByteStreamCompiler
This a simple xml compiler which outputs a byte array.
 If you want to reuse this instance, make sure to call recycle()
 inbetween two compilation tasks.
| Field Summary | 
|---|
| Fields inherited from interface org.apache.cocoon.components.sax.XMLByteStreamConstants | 
|---|
| CHARACTERS, COMMENT, END_CDATA, END_DOCUMENT, END_DTD, END_ELEMENT, END_ENTITY, END_PREFIX_MAPPING, IGNORABLE_WHITESPACE, LOCATOR, PROCESSING_INSTRUCTION, SKIPPED_ENTITY, START_CDATA, START_DOCUMENT, START_DTD, START_ELEMENT, START_ENTITY, START_PREFIX_MAPPING | 
| Constructor Summary | |
|---|---|
| protected  | AbstractXMLByteStreamCompiler() | 
| Method Summary | |
|---|---|
|  void | characters(char[] ch,
           int start,
           int length) | 
|  void | comment(char[] ary,
        int start,
        int length)SAX Event Handling: LexicalHandler | 
|  void | endCDATA()SAX Event Handling: LexicalHandler | 
|  void | endDocument() | 
|  void | endDTD()SAX Event Handling: LexicalHandler | 
|  void | endElement(String namespaceURI,
           String localName,
           String qName) | 
|  void | endEntity(String name)SAX Event Handling: LexicalHandler | 
|  void | endPrefixMapping(String prefix) | 
|  void | ignorableWhitespace(char[] ch,
                    int start,
                    int length) | 
|  void | processingInstruction(String target,
                      String data) | 
|  void | recycle() | 
|  void | setDocumentLocator(Locator locator) | 
|  void | skippedEntity(String name) | 
|  void | startCDATA()SAX Event Handling: LexicalHandler | 
|  void | startDocument() | 
|  void | startDTD(String name,
         String publicId,
         String systemId)SAX Event Handling: LexicalHandler | 
|  void | startElement(String namespaceURI,
             String localName,
             String qName,
             Attributes atts) | 
|  void | startEntity(String name)SAX Event Handling: LexicalHandler | 
|  void | startPrefixMapping(String prefix,
                   String uri) | 
| protected abstract  void | write(int b) | 
|  void | writeAttributes(int attributes) | 
|  void | writeChars(char[] ch,
           int start,
           int length) | 
|  void | writeEvent(int event) | 
|  void | writeString(String str) | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
protected AbstractXMLByteStreamCompiler()
| Method Detail | 
|---|
public void recycle()
public void startDocument()
                   throws SAXException
startDocument in interface ContentHandlerSAXException
public void endDocument()
                 throws SAXException
endDocument in interface ContentHandlerSAXException
public void startPrefixMapping(String prefix,
                               String uri)
                        throws SAXException
startPrefixMapping in interface ContentHandlerSAXException
public void endPrefixMapping(String prefix)
                      throws SAXException
endPrefixMapping in interface ContentHandlerSAXException
public void startElement(String namespaceURI,
                         String localName,
                         String qName,
                         Attributes atts)
                  throws SAXException
startElement in interface ContentHandlerSAXException
public void endElement(String namespaceURI,
                       String localName,
                       String qName)
                throws SAXException
endElement in interface ContentHandlerSAXException
public void characters(char[] ch,
                       int start,
                       int length)
                throws SAXException
characters in interface ContentHandlerSAXException
public void ignorableWhitespace(char[] ch,
                                int start,
                                int length)
                         throws SAXException
ignorableWhitespace in interface ContentHandlerSAXException
public void processingInstruction(String target,
                                  String data)
                           throws SAXException
processingInstruction in interface ContentHandlerSAXExceptionpublic void setDocumentLocator(Locator locator)
setDocumentLocator in interface ContentHandler
public void skippedEntity(String name)
                   throws SAXException
skippedEntity in interface ContentHandlerSAXException
public void startDTD(String name,
                     String publicId,
                     String systemId)
              throws SAXException
startDTD in interface LexicalHandlerSAXException
public void endDTD()
            throws SAXException
endDTD in interface LexicalHandlerSAXException
public void startEntity(String name)
                 throws SAXException
startEntity in interface LexicalHandlerSAXException
public void endEntity(String name)
               throws SAXException
endEntity in interface LexicalHandlerSAXException
public void startCDATA()
                throws SAXException
startCDATA in interface LexicalHandlerSAXException
public void endCDATA()
              throws SAXException
endCDATA in interface LexicalHandlerSAXException
public void comment(char[] ary,
                    int start,
                    int length)
             throws SAXException
comment in interface LexicalHandlerSAXException
public final void writeEvent(int event)
                      throws SAXException
SAXException
public final void writeAttributes(int attributes)
                           throws SAXException
SAXException
public final void writeString(String str)
                       throws SAXException
SAXException
public final void writeChars(char[] ch,
                             int start,
                             int length)
                      throws SAXException
SAXException
protected abstract void write(int b)
                       throws SAXException
SAXException| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||