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 v, LocalNameQualifiedNamesMap m, QualifiedNameArray a, boolean isAttribute) voidaddToTable(String s, Set v, StringIntMap m, PrefixArray a) voidaddToTable(String s, Set v, StringIntMap m, StringArray a) voidcharacters(char[] ch, int start, int length) voidcomment(char[] ch, int start, int length) voidendCDATA()voidvoidendDTD()voidendElement(String namespaceURI, String localName, String qName) voidvoidendPrefixMapping(String prefix) intintstatic StringgetPrefixFromQualifiedName(String qName) voidignorableWhitespace(char[] ch, int start, int length) voidprocessingInstruction(String target, String data) voidsetAttributeValueSizeLimit(int size) voidsetCharacterContentChunkSizeLimit(int size) voidsetDocumentLocator(Locator locator) voidskippedEntity(String name) voidvoidvoidvoidstartElement(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
error, fatalError, notationDecl, resolveEntity, 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() -
startDocument
- Specified by:
startDocumentin interfaceContentHandler- Overrides:
startDocumentin classDefaultHandler- Throws:
SAXException
-
endDocument
- Specified by:
endDocumentin interfaceContentHandler- Overrides:
endDocumentin classDefaultHandler- Throws:
SAXException
-
startPrefixMapping
- Specified by:
startPrefixMappingin interfaceContentHandler- Overrides:
startPrefixMappingin classDefaultHandler- Throws:
SAXException
-
endPrefixMapping
- Specified by:
endPrefixMappingin interfaceContentHandler- Overrides:
endPrefixMappingin 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
-
endElement
- Specified by:
endElementin interfaceContentHandler- Overrides:
endElementin classDefaultHandler- Throws:
SAXException
-
characters
- Specified by:
charactersin interfaceContentHandler- Overrides:
charactersin classDefaultHandler- Throws:
SAXException
-
ignorableWhitespace
- Specified by:
ignorableWhitespacein interfaceContentHandler- Overrides:
ignorableWhitespacein classDefaultHandler- Throws:
SAXException
-
processingInstruction
- Specified by:
processingInstructionin interfaceContentHandler- Overrides:
processingInstructionin classDefaultHandler- Throws:
SAXException
-
setDocumentLocator
- Specified by:
setDocumentLocatorin interfaceContentHandler- Overrides:
setDocumentLocatorin classDefaultHandler
-
skippedEntity
- Specified by:
skippedEntityin interfaceContentHandler- Overrides:
skippedEntityin 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 v, LocalNameQualifiedNamesMap m, QualifiedNameArray a, boolean isAttribute) throws SAXException - Throws:
SAXException
-
getPrefixFromQualifiedName
-