Class VocabularyGenerator
- java.lang.Object
-
- com.sun.xml.fastinfoset.vocab.frequency.VocabularyGenerator
-
public class VocabularyGenerator extends java.lang.Object
Deprecated.Generate a Fast Infoset parser and serializer vocabulary from aFrequencyBasedLists
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VocabularyGenerator.XmlApi
Deprecated.Constants for the various XML-based APIs
-
Field Summary
Fields Modifier and Type Field Description private ParserVocabulary
_parserVocabulary
Deprecated.private SerializerVocabulary
_serializerVocabulary
Deprecated.private VocabularyGenerator.XmlApi
_xapi
Deprecated.
-
Constructor Summary
Constructors Constructor Description VocabularyGenerator(FrequencyBasedLists fbl, VocabularyGenerator.XmlApi xapi)
Deprecated.VocabularyGenerator(SerializerVocabulary serializerVocabulary, ParserVocabulary parserVocabulary, FrequencyBasedLists fbl, VocabularyGenerator.XmlApi xapi)
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description private void
addToNameTable(javax.xml.namespace.QName n, LocalNameQualifiedNamesMap m, QualifiedNameArray a, boolean isAttribute)
Deprecated.private void
addToTable(java.lang.String s, CharArrayIntMap m, ContiguousCharArrayArray a)
Deprecated.private void
addToTable(java.lang.String s, StringIntMap m, PrefixArray a)
Deprecated.private void
addToTable(java.lang.String s, StringIntMap m, StringArray a)
Deprecated.private void
generate(FrequencyBasedLists fbl)
Deprecated.ParserVocabulary
getParserVocabulary()
Deprecated.Get the generated parser vocabulary.SerializerVocabulary
getSerializerVocabulary()
Deprecated.Get the generated serializer vocabulary.static void
main(java.lang.String[] args)
Deprecated.
-
-
-
Field Detail
-
_xapi
private VocabularyGenerator.XmlApi _xapi
Deprecated.
-
_serializerVocabulary
private SerializerVocabulary _serializerVocabulary
Deprecated.
-
_parserVocabulary
private ParserVocabulary _parserVocabulary
Deprecated.
-
-
Constructor Detail
-
VocabularyGenerator
public VocabularyGenerator(FrequencyBasedLists fbl, VocabularyGenerator.XmlApi xapi)
Deprecated.- Parameters:
fbl
- the set of frequency-based lists.xapi
- the XML API that the parser and serializer vocabulary will be used with.
-
VocabularyGenerator
public VocabularyGenerator(SerializerVocabulary serializerVocabulary, ParserVocabulary parserVocabulary, FrequencyBasedLists fbl, VocabularyGenerator.XmlApi xapi)
Deprecated.- Parameters:
serializerVocabulary
- the serializer vocabualry to useparserVocabulary
- the parser vocabulary to usefbl
- the set of frequency-based lists.xapi
- the XML API that the parser and serializer vocabulary will be used with.
-
-
Method Detail
-
getSerializerVocabulary
public SerializerVocabulary getSerializerVocabulary()
Deprecated.Get the generated serializer vocabulary.- Returns:
- the serializer vocabulary.
-
getParserVocabulary
public ParserVocabulary getParserVocabulary()
Deprecated.Get the generated parser vocabulary.- Returns:
- the parser vocabulary.
-
generate
private void generate(FrequencyBasedLists fbl)
Deprecated.
-
addToNameTable
private void addToNameTable(javax.xml.namespace.QName n, LocalNameQualifiedNamesMap m, QualifiedNameArray a, boolean isAttribute)
Deprecated.
-
addToTable
private void addToTable(java.lang.String s, StringIntMap m, StringArray a)
Deprecated.
-
addToTable
private void addToTable(java.lang.String s, StringIntMap m, PrefixArray a)
Deprecated.
-
addToTable
private void addToTable(java.lang.String s, CharArrayIntMap m, ContiguousCharArrayArray a)
Deprecated.
-
main
public static void main(java.lang.String[] args) throws java.lang.Exception
Deprecated.- Parameters:
args
- the command line arguments. arg[0] is the path to a schema, args[1] to args[n] are the paths to XML documents.- Throws:
java.lang.Exception
-
-