public class SaxBuffer extends Object implements ContentHandler, LexicalHandler, Serializable
This class was copied form the Apache Cocoon.
| Modifier and Type | Class and Description |
|---|---|
static class |
SaxBuffer.Characters |
static class |
SaxBuffer.Comment |
static class |
SaxBuffer.EndCDATA |
static class |
SaxBuffer.EndDocument |
static class |
SaxBuffer.EndDTD |
static class |
SaxBuffer.EndElement |
static class |
SaxBuffer.EndEntity |
static class |
SaxBuffer.EndPrefixMapping |
static class |
SaxBuffer.IgnorableWhitespace |
static class |
SaxBuffer.PI |
static interface |
SaxBuffer.SaxBit
SaxBit is a representation of the SAX event.
|
static class |
SaxBuffer.SkippedEntity |
static class |
SaxBuffer.StartCDATA |
static class |
SaxBuffer.StartDocument |
static class |
SaxBuffer.StartDTD |
static class |
SaxBuffer.StartElement |
static class |
SaxBuffer.StartEntity |
static class |
SaxBuffer.StartPrefixMapping |
| Modifier and Type | Field and Description |
|---|---|
protected List<SaxBuffer.SaxBit> |
saxbits
Stores list of
SaxBuffer.SaxBit objects. |
| Constructor and Description |
|---|
SaxBuffer()
Creates empty SaxBuffer
|
SaxBuffer(SaxBuffer saxBuffer)
Creates copy of another SaxBuffer
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addBit(SaxBuffer.SaxBit bit)
Adds a SaxBit to the bits list
|
protected Iterator |
bits()
Iterates through the bits list
|
void |
characters(char[] ch,
int start,
int length) |
void |
comment(char[] ch,
int start,
int length) |
void |
dump(Writer writer) |
void |
endCDATA() |
void |
endDocument() |
void |
endDTD() |
void |
endElement(String namespaceURI,
String localName,
String qName) |
void |
endEntity(String name) |
void |
endPrefixMapping(String prefix) |
List<SaxBuffer.SaxBit> |
getBits() |
void |
ignorableWhitespace(char[] ch,
int start,
int length) |
boolean |
isEmpty() |
void |
processingInstruction(String target,
String data) |
void |
recycle() |
void |
setDocumentLocator(Locator locator) |
void |
skippedEntity(String name) |
void |
startCDATA() |
void |
startDocument() |
void |
startDTD(String name,
String publicId,
String systemId) |
void |
startElement(String namespaceURI,
String localName,
String qName,
Attributes atts) |
void |
startEntity(String name) |
void |
startPrefixMapping(String prefix,
String uri) |
void |
toSAX(ContentHandler contentHandler) |
String |
toString() |
protected List<SaxBuffer.SaxBit> saxbits
SaxBuffer.SaxBit objects.public SaxBuffer()
public SaxBuffer(SaxBuffer saxBuffer)
public void skippedEntity(String name) throws SAXException
skippedEntity in interface ContentHandlerSAXExceptionpublic void setDocumentLocator(Locator locator)
setDocumentLocator in interface ContentHandlerpublic void ignorableWhitespace(char[] ch,
int start,
int length)
throws SAXException
ignorableWhitespace in interface ContentHandlerSAXExceptionpublic void processingInstruction(String target, String data) throws SAXException
processingInstruction in interface ContentHandlerSAXExceptionpublic void startDocument()
throws SAXException
startDocument in interface ContentHandlerSAXExceptionpublic void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException
startElement in interface ContentHandlerSAXExceptionpublic void endPrefixMapping(String prefix) throws SAXException
endPrefixMapping in interface ContentHandlerSAXExceptionpublic void characters(char[] ch,
int start,
int length)
throws SAXException
characters in interface ContentHandlerSAXExceptionpublic void endElement(String namespaceURI, String localName, String qName) throws SAXException
endElement in interface ContentHandlerSAXExceptionpublic void endDocument()
throws SAXException
endDocument in interface ContentHandlerSAXExceptionpublic void startPrefixMapping(String prefix, String uri) throws SAXException
startPrefixMapping in interface ContentHandlerSAXExceptionpublic void endCDATA()
throws SAXException
endCDATA in interface LexicalHandlerSAXExceptionpublic void comment(char[] ch,
int start,
int length)
throws SAXException
comment in interface LexicalHandlerSAXExceptionpublic void startEntity(String name) throws SAXException
startEntity in interface LexicalHandlerSAXExceptionpublic void endDTD()
throws SAXException
endDTD in interface LexicalHandlerSAXExceptionpublic void startDTD(String name, String publicId, String systemId) throws SAXException
startDTD in interface LexicalHandlerSAXExceptionpublic void startCDATA()
throws SAXException
startCDATA in interface LexicalHandlerSAXExceptionpublic void endEntity(String name) throws SAXException
endEntity in interface LexicalHandlerSAXExceptionprotected final void addBit(SaxBuffer.SaxBit bit)
protected final Iterator bits()
public boolean isEmpty()
public List<SaxBuffer.SaxBit> getBits()
public void toSAX(ContentHandler contentHandler) throws SAXException
SAXExceptionpublic void recycle()
public void dump(Writer writer) throws IOException
IOExceptionCopyright © 2022. All rights reserved.