public class VocabularyGenerator extends org.xml.sax.helpers.DefaultHandler implements LexicalHandler
| Modifier and Type | Field and Description |
|---|---|
protected ParserVocabulary |
_parserVocabulary |
protected SerializerVocabulary |
_serializerVocabulary |
protected Vocabulary |
_v |
protected int |
attributeValueSizeConstraint |
protected int |
characterContentChunkSizeContraint |
| Constructor and Description |
|---|
VocabularyGenerator()
Creates a new instance of VocabularyGenerator
|
VocabularyGenerator(ParserVocabulary parserVocabulary) |
VocabularyGenerator(SerializerVocabulary serializerVocabulary) |
VocabularyGenerator(SerializerVocabulary serializerVocabulary,
ParserVocabulary parserVocabulary)
Creates a new instance of VocabularyGenerator
|
error, fatalError, notationDecl, resolveEntity, unparsedEntityDecl, warningprotected SerializerVocabulary _serializerVocabulary
protected ParserVocabulary _parserVocabulary
protected Vocabulary _v
protected int attributeValueSizeConstraint
protected int characterContentChunkSizeContraint
public VocabularyGenerator()
public VocabularyGenerator(SerializerVocabulary serializerVocabulary)
public VocabularyGenerator(ParserVocabulary parserVocabulary)
public VocabularyGenerator(SerializerVocabulary serializerVocabulary, ParserVocabulary parserVocabulary)
public Vocabulary getVocabulary()
public void setCharacterContentChunkSizeLimit(int size)
public int getCharacterContentChunkSizeLimit()
public void setAttributeValueSizeLimit(int size)
public int getAttributeValueSizeLimit()
public void startDocument()
throws SAXException
startDocument in interface ContentHandlerstartDocument in class org.xml.sax.helpers.DefaultHandlerSAXExceptionpublic void endDocument()
throws SAXException
endDocument in interface ContentHandlerendDocument in class org.xml.sax.helpers.DefaultHandlerSAXExceptionpublic void startPrefixMapping(String prefix, String uri) throws SAXException
startPrefixMapping in interface ContentHandlerstartPrefixMapping in class org.xml.sax.helpers.DefaultHandlerSAXExceptionpublic void endPrefixMapping(String prefix) throws SAXException
endPrefixMapping in interface ContentHandlerendPrefixMapping in class org.xml.sax.helpers.DefaultHandlerSAXExceptionpublic void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException
startElement in interface ContentHandlerstartElement in class org.xml.sax.helpers.DefaultHandlerSAXExceptionpublic void endElement(String namespaceURI, String localName, String qName) throws SAXException
endElement in interface ContentHandlerendElement in class org.xml.sax.helpers.DefaultHandlerSAXExceptionpublic void characters(char[] ch,
int start,
int length)
throws SAXException
characters in interface ContentHandlercharacters in class org.xml.sax.helpers.DefaultHandlerSAXExceptionpublic void ignorableWhitespace(char[] ch,
int start,
int length)
throws SAXException
ignorableWhitespace in interface ContentHandlerignorableWhitespace in class org.xml.sax.helpers.DefaultHandlerSAXExceptionpublic void processingInstruction(String target, String data) throws SAXException
processingInstruction in interface ContentHandlerprocessingInstruction in class org.xml.sax.helpers.DefaultHandlerSAXExceptionpublic void setDocumentLocator(Locator locator)
setDocumentLocator in interface ContentHandlersetDocumentLocator in class org.xml.sax.helpers.DefaultHandlerpublic void skippedEntity(String name) throws SAXException
skippedEntity in interface ContentHandlerskippedEntity in class org.xml.sax.helpers.DefaultHandlerSAXExceptionpublic void comment(char[] ch,
int start,
int length)
throws SAXException
comment in interface LexicalHandlerSAXExceptionpublic void startCDATA()
throws SAXException
startCDATA in interface LexicalHandlerSAXExceptionpublic void endCDATA()
throws SAXException
endCDATA in interface LexicalHandlerSAXExceptionpublic void startDTD(String name, String publicId, String systemId) throws SAXException
startDTD in interface LexicalHandlerSAXExceptionpublic void endDTD()
throws SAXException
endDTD in interface LexicalHandlerSAXExceptionpublic void startEntity(String name) throws SAXException
startEntity in interface LexicalHandlerSAXExceptionpublic void endEntity(String name) throws SAXException
endEntity in interface LexicalHandlerSAXExceptionpublic void addToTable(String s, Set v, StringIntMap m, StringArray a)
public void addToTable(String s, Set v, StringIntMap m, PrefixArray a)
public void addToCharArrayTable(CharArray c)
public void addToNameTable(String namespaceURI, String qName, String localName, Set v, LocalNameQualifiedNamesMap m, QualifiedNameArray a, boolean isAttribute) throws SAXException
SAXExceptionCopyright © 2012 Oracle Corpration. All Rights Reserved.