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 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
void
endDTD()
void
endElement
(String namespaceURI, String localName, String qName) void
void
endPrefixMapping
(String prefix) int
int
static String
getPrefixFromQualifiedName
(String qName) void
ignorableWhitespace
(char[] ch, int start, int length) void
processingInstruction
(String target, String data) void
setAttributeValueSizeLimit
(int size) void
setCharacterContentChunkSizeLimit
(int size) void
setDocumentLocator
(Locator locator) void
skippedEntity
(String name) void
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
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:
startDocument
in interfaceContentHandler
- Overrides:
startDocument
in classDefaultHandler
- Throws:
SAXException
-
endDocument
- Specified by:
endDocument
in interfaceContentHandler
- Overrides:
endDocument
in classDefaultHandler
- Throws:
SAXException
-
startPrefixMapping
- Specified by:
startPrefixMapping
in interfaceContentHandler
- Overrides:
startPrefixMapping
in classDefaultHandler
- Throws:
SAXException
-
endPrefixMapping
- Specified by:
endPrefixMapping
in interfaceContentHandler
- Overrides:
endPrefixMapping
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
-
endElement
- Specified by:
endElement
in interfaceContentHandler
- Overrides:
endElement
in classDefaultHandler
- Throws:
SAXException
-
characters
- Specified by:
characters
in interfaceContentHandler
- Overrides:
characters
in classDefaultHandler
- Throws:
SAXException
-
ignorableWhitespace
- Specified by:
ignorableWhitespace
in interfaceContentHandler
- Overrides:
ignorableWhitespace
in classDefaultHandler
- Throws:
SAXException
-
processingInstruction
- Specified by:
processingInstruction
in interfaceContentHandler
- Overrides:
processingInstruction
in classDefaultHandler
- Throws:
SAXException
-
setDocumentLocator
- Specified by:
setDocumentLocator
in interfaceContentHandler
- Overrides:
setDocumentLocator
in classDefaultHandler
-
skippedEntity
- Specified by:
skippedEntity
in interfaceContentHandler
- Overrides:
skippedEntity
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
-