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
public class VocabularyGenerator extends DefaultHandler implements LexicalHandler
-
-
Field Summary
Fields Modifier and Type Field Description protected ParserVocabulary_parserVocabularyprotected SerializerVocabulary_serializerVocabularyprotected Vocabulary_vprotected intattributeValueSizeConstraintprotected intcharacterContentChunkSizeContraint
-
Constructor Summary
Constructors Constructor Description VocabularyGenerator()Creates a new instance of VocabularyGeneratorVocabularyGenerator(ParserVocabulary parserVocabulary)VocabularyGenerator(SerializerVocabulary serializerVocabulary)VocabularyGenerator(SerializerVocabulary serializerVocabulary, ParserVocabulary parserVocabulary)Creates a new instance of VocabularyGenerator
-
Method Summary
-
Methods inherited from class org.xml.sax.helpers.DefaultHandler
error, fatalError, notationDecl, resolveEntity, unparsedEntityDecl, warning
-
-
-
-
Field Detail
-
_serializerVocabulary
protected SerializerVocabulary _serializerVocabulary
-
_parserVocabulary
protected ParserVocabulary _parserVocabulary
-
_v
protected Vocabulary _v
-
attributeValueSizeConstraint
protected int attributeValueSizeConstraint
-
characterContentChunkSizeContraint
protected int characterContentChunkSizeContraint
-
-
Constructor Detail
-
VocabularyGenerator
public VocabularyGenerator()
Creates a new instance of VocabularyGenerator
-
VocabularyGenerator
public VocabularyGenerator(SerializerVocabulary serializerVocabulary)
-
VocabularyGenerator
public VocabularyGenerator(ParserVocabulary parserVocabulary)
-
VocabularyGenerator
public VocabularyGenerator(SerializerVocabulary serializerVocabulary, ParserVocabulary parserVocabulary)
Creates a new instance of VocabularyGenerator
-
-
Method Detail
-
getVocabulary
public Vocabulary getVocabulary()
-
setCharacterContentChunkSizeLimit
public void setCharacterContentChunkSizeLimit(int size)
-
getCharacterContentChunkSizeLimit
public int getCharacterContentChunkSizeLimit()
-
setAttributeValueSizeLimit
public void setAttributeValueSizeLimit(int size)
-
getAttributeValueSizeLimit
public int getAttributeValueSizeLimit()
-
startDocument
public void startDocument() throws SAXException- Specified by:
startDocumentin interfaceContentHandler- Overrides:
startDocumentin classDefaultHandler- Throws:
SAXException
-
endDocument
public void endDocument() throws SAXException- Specified by:
endDocumentin interfaceContentHandler- Overrides:
endDocumentin classDefaultHandler- Throws:
SAXException
-
startPrefixMapping
public void startPrefixMapping(String prefix, String uri) throws SAXException
- Specified by:
startPrefixMappingin interfaceContentHandler- Overrides:
startPrefixMappingin classDefaultHandler- Throws:
SAXException
-
endPrefixMapping
public void endPrefixMapping(String prefix) throws SAXException
- 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
public void endElement(String namespaceURI, String localName, String qName) throws SAXException
- Specified by:
endElementin interfaceContentHandler- Overrides:
endElementin classDefaultHandler- Throws:
SAXException
-
characters
public void characters(char[] ch, int start, int length) throws SAXException- Specified by:
charactersin interfaceContentHandler- Overrides:
charactersin classDefaultHandler- Throws:
SAXException
-
ignorableWhitespace
public void ignorableWhitespace(char[] ch, int start, int length) throws SAXException- Specified by:
ignorableWhitespacein interfaceContentHandler- Overrides:
ignorableWhitespacein classDefaultHandler- Throws:
SAXException
-
processingInstruction
public void processingInstruction(String target, String data) throws SAXException
- Specified by:
processingInstructionin interfaceContentHandler- Overrides:
processingInstructionin classDefaultHandler- Throws:
SAXException
-
setDocumentLocator
public void setDocumentLocator(Locator locator)
- Specified by:
setDocumentLocatorin interfaceContentHandler- Overrides:
setDocumentLocatorin classDefaultHandler
-
skippedEntity
public void skippedEntity(String name) throws SAXException
- Specified by:
skippedEntityin interfaceContentHandler- Overrides:
skippedEntityin classDefaultHandler- Throws:
SAXException
-
comment
public void comment(char[] ch, int start, int length) throws SAXException- Specified by:
commentin interfaceLexicalHandler- Throws:
SAXException
-
startCDATA
public void startCDATA() throws SAXException- Specified by:
startCDATAin interfaceLexicalHandler- Throws:
SAXException
-
endCDATA
public void endCDATA() throws SAXException- Specified by:
endCDATAin interfaceLexicalHandler- Throws:
SAXException
-
startDTD
public void startDTD(String name, String publicId, String systemId) throws SAXException
- Specified by:
startDTDin interfaceLexicalHandler- Throws:
SAXException
-
endDTD
public void endDTD() throws SAXException- Specified by:
endDTDin interfaceLexicalHandler- Throws:
SAXException
-
startEntity
public void startEntity(String name) throws SAXException
- Specified by:
startEntityin interfaceLexicalHandler- Throws:
SAXException
-
endEntity
public void endEntity(String name) throws SAXException
- Specified by:
endEntityin interfaceLexicalHandler- Throws:
SAXException
-
addToTable
public void addToTable(String s, Set v, StringIntMap m, StringArray a)
-
addToTable
public void addToTable(String s, Set v, StringIntMap m, PrefixArray a)
-
addToCharArrayTable
public void addToCharArrayTable(CharArray c)
-
addToNameTable
public void addToNameTable(String namespaceURI, String qName, String localName, Set v, LocalNameQualifiedNamesMap m, QualifiedNameArray a, boolean isAttribute) throws SAXException
- Throws:
SAXException
-
-