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, warning
protected 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 ContentHandler
startDocument
in class org.xml.sax.helpers.DefaultHandler
SAXException
public void endDocument() throws SAXException
endDocument
in interface ContentHandler
endDocument
in class org.xml.sax.helpers.DefaultHandler
SAXException
public void startPrefixMapping(String prefix, String uri) throws SAXException
startPrefixMapping
in interface ContentHandler
startPrefixMapping
in class org.xml.sax.helpers.DefaultHandler
SAXException
public void endPrefixMapping(String prefix) throws SAXException
endPrefixMapping
in interface ContentHandler
endPrefixMapping
in class org.xml.sax.helpers.DefaultHandler
SAXException
public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException
startElement
in interface ContentHandler
startElement
in class org.xml.sax.helpers.DefaultHandler
SAXException
public void endElement(String namespaceURI, String localName, String qName) throws SAXException
endElement
in interface ContentHandler
endElement
in class org.xml.sax.helpers.DefaultHandler
SAXException
public void characters(char[] ch, int start, int length) throws SAXException
characters
in interface ContentHandler
characters
in class org.xml.sax.helpers.DefaultHandler
SAXException
public void ignorableWhitespace(char[] ch, int start, int length) throws SAXException
ignorableWhitespace
in interface ContentHandler
ignorableWhitespace
in class org.xml.sax.helpers.DefaultHandler
SAXException
public void processingInstruction(String target, String data) throws SAXException
processingInstruction
in interface ContentHandler
processingInstruction
in class org.xml.sax.helpers.DefaultHandler
SAXException
public void setDocumentLocator(Locator locator)
setDocumentLocator
in interface ContentHandler
setDocumentLocator
in class org.xml.sax.helpers.DefaultHandler
public void skippedEntity(String name) throws SAXException
skippedEntity
in interface ContentHandler
skippedEntity
in class org.xml.sax.helpers.DefaultHandler
SAXException
public void comment(char[] ch, int start, int length) throws SAXException
comment
in interface LexicalHandler
SAXException
public void startCDATA() throws SAXException
startCDATA
in interface LexicalHandler
SAXException
public void endCDATA() throws SAXException
endCDATA
in interface LexicalHandler
SAXException
public void startDTD(String name, String publicId, String systemId) throws SAXException
startDTD
in interface LexicalHandler
SAXException
public void endDTD() throws SAXException
endDTD
in interface LexicalHandler
SAXException
public void startEntity(String name) throws SAXException
startEntity
in interface LexicalHandler
SAXException
public void endEntity(String name) throws SAXException
endEntity
in interface LexicalHandler
SAXException
public 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
SAXException
Copyright © 2015 Oracle Corpration. All Rights Reserved.