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 ParserVocabulary
protected SerializerVocabulary
protected Vocabulary
protected int
protected 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 TypeMethodDescriptionvoid
void
addToNameTable
(String namespaceURI, String qName, String localName, Set<QName> v, LocalNameQualifiedNamesMap m, QualifiedNameArray a, boolean isAttribute) void
addToTable
(String s, Set<String> v, StringIntMap m, PrefixArray a) void
addToTable
(String s, Set<String> v, StringIntMap m, StringArray a) void
characters
(char[] ch, int start, int length) void
comment
(char[] ch, int start, int length) void
endCDATA()
void
endDTD()
void
int
int
static String
getPrefixFromQualifiedName
(String qName) void
setAttributeValueSizeLimit
(int size) void
setCharacterContentChunkSizeLimit
(int size) void
void
void
startElement
(String namespaceURI, String localName, String qName, Attributes atts) void
startEntity
(String name) void
startPrefixMapping
(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:
startPrefixMapping
in interfaceContentHandler
- Overrides:
startPrefixMapping
in classDefaultHandler
- Throws:
SAXException
-
startElement
public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException - Specified by:
startElement
in interfaceContentHandler
- Overrides:
startElement
in classDefaultHandler
- Throws:
SAXException
-
characters
- Specified by:
characters
in interfaceContentHandler
- Overrides:
characters
in classDefaultHandler
- Throws:
SAXException
-
comment
- Specified by:
comment
in interfaceLexicalHandler
- Throws:
SAXException
-
startCDATA
- Specified by:
startCDATA
in interfaceLexicalHandler
- Throws:
SAXException
-
endCDATA
- Specified by:
endCDATA
in interfaceLexicalHandler
- Throws:
SAXException
-
startDTD
- Specified by:
startDTD
in interfaceLexicalHandler
- Throws:
SAXException
-
endDTD
- Specified by:
endDTD
in interfaceLexicalHandler
- Throws:
SAXException
-
startEntity
- Specified by:
startEntity
in interfaceLexicalHandler
- Throws:
SAXException
-
endEntity
- Specified by:
endEntity
in 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
-