Package com.sun.xml.fastinfoset.tools
Class VocabularyGenerator
java.lang.Object
org.xml.sax.helpers.DefaultHandler
com.sun.xml.fastinfoset.tools.VocabularyGenerator
- All Implemented Interfaces:
ContentHandler,DTDHandler,EntityResolver,ErrorHandler,LexicalHandler
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ParserVocabularyprotected SerializerVocabularyprotected Vocabularyprotected intprotected int -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instance of VocabularyGeneratorVocabularyGenerator(ParserVocabulary parserVocabulary) VocabularyGenerator(SerializerVocabulary serializerVocabulary) VocabularyGenerator(SerializerVocabulary serializerVocabulary, ParserVocabulary parserVocabulary) Creates a new instance of VocabularyGenerator -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidaddToNameTable(String namespaceURI, String qName, String localName, Set<QName> v, LocalNameQualifiedNamesMap m, QualifiedNameArray a, boolean isAttribute) voidaddToTable(String s, Set<String> v, StringIntMap m, PrefixArray a) voidaddToTable(String s, Set<String> v, StringIntMap m, StringArray a) voidcharacters(char[] ch, int start, int length) voidcomment(char[] ch, int start, int length) voidendCDATA()voidendDTD()voidintintstatic StringgetPrefixFromQualifiedName(String qName) voidsetAttributeValueSizeLimit(int size) voidsetCharacterContentChunkSizeLimit(int size) voidvoidvoidstartElement(String namespaceURI, String localName, String qName, Attributes atts) voidstartEntity(String name) voidstartPrefixMapping(String prefix, String uri) Methods inherited from class org.xml.sax.helpers.DefaultHandler
endDocument, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, unparsedEntityDecl, warning
-
Field Details
-
_serializerVocabulary
-
_parserVocabulary
-
_v
-
attributeValueSizeConstraint
protected int attributeValueSizeConstraint -
characterContentChunkSizeContraint
protected int characterContentChunkSizeContraint
-
-
Constructor Details
-
VocabularyGenerator
public VocabularyGenerator()Creates a new instance of VocabularyGenerator -
VocabularyGenerator
-
VocabularyGenerator
-
VocabularyGenerator
public VocabularyGenerator(SerializerVocabulary serializerVocabulary, ParserVocabulary parserVocabulary) Creates a new instance of VocabularyGenerator
-
-
Method Details
-
getVocabulary
-
setCharacterContentChunkSizeLimit
public void setCharacterContentChunkSizeLimit(int size) -
getCharacterContentChunkSizeLimit
public int getCharacterContentChunkSizeLimit() -
setAttributeValueSizeLimit
public void setAttributeValueSizeLimit(int size) -
getAttributeValueSizeLimit
public int getAttributeValueSizeLimit() -
startPrefixMapping
- Specified by:
startPrefixMappingin interfaceContentHandler- Overrides:
startPrefixMappingin classDefaultHandler- Throws:
SAXException
-
startElement
public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException - Specified by:
startElementin interfaceContentHandler- Overrides:
startElementin classDefaultHandler- Throws:
SAXException
-
characters
- Specified by:
charactersin interfaceContentHandler- Overrides:
charactersin classDefaultHandler- Throws:
SAXException
-
comment
- Specified by:
commentin interfaceLexicalHandler- Throws:
SAXException
-
startCDATA
- Specified by:
startCDATAin interfaceLexicalHandler- Throws:
SAXException
-
endCDATA
- Specified by:
endCDATAin interfaceLexicalHandler- Throws:
SAXException
-
startDTD
- Specified by:
startDTDin interfaceLexicalHandler- Throws:
SAXException
-
endDTD
- Specified by:
endDTDin interfaceLexicalHandler- Throws:
SAXException
-
startEntity
- Specified by:
startEntityin interfaceLexicalHandler- Throws:
SAXException
-
endEntity
- Specified by:
endEntityin interfaceLexicalHandler- Throws:
SAXException
-
addToTable
-
addToTable
-
addToCharArrayTable
-
addToNameTable
public void addToNameTable(String namespaceURI, String qName, String localName, Set<QName> v, LocalNameQualifiedNamesMap m, QualifiedNameArray a, boolean isAttribute) throws SAXException - Throws:
SAXException
-
getPrefixFromQualifiedName
-