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 org.xml.sax.helpers.DefaultHandler
- implements LexicalHandler
|
Method Summary |
void |
addToCharArrayTable(CharArray c)
|
void |
addToNameTable(String namespaceURI,
String qName,
String localName,
Set v,
LocalNameQualifiedNamesMap m,
QualifiedNameArray a,
boolean isAttribute)
|
void |
addToTable(String s,
Set v,
StringIntMap m,
PrefixArray a)
|
void |
addToTable(String s,
Set v,
StringIntMap m,
StringArray a)
|
void |
characters(char[] ch,
int start,
int length)
|
void |
comment(char[] ch,
int start,
int length)
|
void |
endCDATA()
|
void |
endDocument()
|
void |
endDTD()
|
void |
endElement(String namespaceURI,
String localName,
String qName)
|
void |
endEntity(String name)
|
void |
endPrefixMapping(String prefix)
|
int |
getAttributeValueSizeLimit()
|
int |
getCharacterContentChunkSizeLimit()
|
static String |
getPrefixFromQualifiedName(String qName)
|
Vocabulary |
getVocabulary()
|
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 |
startCDATA()
|
void |
startDocument()
|
void |
startDTD(String name,
String publicId,
String systemId)
|
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 |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_serializerVocabulary
protected SerializerVocabulary _serializerVocabulary
_parserVocabulary
protected ParserVocabulary _parserVocabulary
_v
protected Vocabulary _v
attributeValueSizeConstraint
protected int attributeValueSizeConstraint
characterContentChunkSizeContraint
protected int characterContentChunkSizeContraint
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
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:
startDocument in interface ContentHandler- Overrides:
startDocument in class org.xml.sax.helpers.DefaultHandler
- Throws:
SAXException
endDocument
public void endDocument()
throws SAXException
- Specified by:
endDocument in interface ContentHandler- Overrides:
endDocument in class org.xml.sax.helpers.DefaultHandler
- Throws:
SAXException
startPrefixMapping
public void startPrefixMapping(String prefix,
String uri)
throws SAXException
- Specified by:
startPrefixMapping in interface ContentHandler- Overrides:
startPrefixMapping in class org.xml.sax.helpers.DefaultHandler
- Throws:
SAXException
endPrefixMapping
public void endPrefixMapping(String prefix)
throws SAXException
- Specified by:
endPrefixMapping in interface ContentHandler- Overrides:
endPrefixMapping in class org.xml.sax.helpers.DefaultHandler
- Throws:
SAXException
startElement
public void startElement(String namespaceURI,
String localName,
String qName,
Attributes atts)
throws SAXException
- Specified by:
startElement in interface ContentHandler- Overrides:
startElement in class org.xml.sax.helpers.DefaultHandler
- Throws:
SAXException
endElement
public void endElement(String namespaceURI,
String localName,
String qName)
throws SAXException
- Specified by:
endElement in interface ContentHandler- Overrides:
endElement in class org.xml.sax.helpers.DefaultHandler
- Throws:
SAXException
characters
public void characters(char[] ch,
int start,
int length)
throws SAXException
- Specified by:
characters in interface ContentHandler- Overrides:
characters in class org.xml.sax.helpers.DefaultHandler
- Throws:
SAXException
ignorableWhitespace
public void ignorableWhitespace(char[] ch,
int start,
int length)
throws SAXException
- Specified by:
ignorableWhitespace in interface ContentHandler- Overrides:
ignorableWhitespace in class org.xml.sax.helpers.DefaultHandler
- Throws:
SAXException
processingInstruction
public void processingInstruction(String target,
String data)
throws SAXException
- Specified by:
processingInstruction in interface ContentHandler- Overrides:
processingInstruction in class org.xml.sax.helpers.DefaultHandler
- Throws:
SAXException
setDocumentLocator
public void setDocumentLocator(Locator locator)
- Specified by:
setDocumentLocator in interface ContentHandler- Overrides:
setDocumentLocator in class org.xml.sax.helpers.DefaultHandler
skippedEntity
public void skippedEntity(String name)
throws SAXException
- Specified by:
skippedEntity in interface ContentHandler- Overrides:
skippedEntity in class org.xml.sax.helpers.DefaultHandler
- Throws:
SAXException
comment
public void comment(char[] ch,
int start,
int length)
throws SAXException
- Specified by:
comment in interface LexicalHandler
- Throws:
SAXException
startCDATA
public void startCDATA()
throws SAXException
- Specified by:
startCDATA in interface LexicalHandler
- Throws:
SAXException
endCDATA
public void endCDATA()
throws SAXException
- Specified by:
endCDATA in interface LexicalHandler
- Throws:
SAXException
startDTD
public void startDTD(String name,
String publicId,
String systemId)
throws SAXException
- Specified by:
startDTD in interface LexicalHandler
- Throws:
SAXException
endDTD
public void endDTD()
throws SAXException
- Specified by:
endDTD in interface LexicalHandler
- Throws:
SAXException
startEntity
public void startEntity(String name)
throws SAXException
- Specified by:
startEntity in interface LexicalHandler
- Throws:
SAXException
endEntity
public void endEntity(String name)
throws SAXException
- Specified by:
endEntity in interface LexicalHandler
- 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
getPrefixFromQualifiedName
public static String getPrefixFromQualifiedName(String qName)
Copyright © 2005-2015 Oracle Corporation. All Rights Reserved.