|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A general interface for parsers of fast infoset documents.
This interface contains common methods that are not specific to any API associated with the parsing of fast infoset documents.
Field Summary | |
static java.lang.String |
BUFFER_SIZE_PROPERTY
The property name to be used for getting and setting the buffer size of a parser. |
static java.lang.String |
EXTERNAL_VOCABULARIES_PROPERTY
The property name to be used for getting and setting the Map containing external vocabularies. |
static java.lang.String |
REGISTERED_ENCODING_ALGORITHMS_PROPERTY
The property name to be used for getting and setting the Map containing encoding algorithms. |
static java.lang.String |
STRING_INTERNING_PROPERTY
The property name to be used for getting and setting the string interning property of a parser. |
Method Summary | |
int |
getBufferSize()
Get the buffer size. |
java.util.Map |
getExternalVocabularies()
Deprecated. The map returned will not be the same instance and contain the same entries as the map set by setExternalVocabularies(java.util.Map)
method. |
boolean |
getParseFragments()
Return the parse fragments property. |
java.util.Map |
getRegisteredEncodingAlgorithms()
Gets the set of registered encoding algorithms. |
boolean |
getStringInterning()
Return the string interning property. |
void |
setBufferSize(int bufferSize)
Set the buffer size. |
void |
setExternalVocabularies(java.util.Map referencedVocabualries)
Set the map of referenced external vocabularies. |
void |
setParseFragments(boolean parseFragments)
Set the parse fragments property. |
void |
setRegisteredEncodingAlgorithms(java.util.Map algorithms)
Sets the set of registered encoding algorithms. |
void |
setStringInterning(boolean stringInterning)
Set the string interning property. |
Field Detail |
public static final java.lang.String STRING_INTERNING_PROPERTY
public static final java.lang.String BUFFER_SIZE_PROPERTY
public static final java.lang.String REGISTERED_ENCODING_ALGORITHMS_PROPERTY
public static final java.lang.String EXTERNAL_VOCABULARIES_PROPERTY
Method Detail |
public void setStringInterning(boolean stringInterning)
If the string interning property is set to true then
String
objects instantiated for [namespace name], [prefix]
and [local name] infoset properties will be interned using the method
String.intern()
.
stringInterning
- The string interning property.public boolean getStringInterning()
public void setBufferSize(int bufferSize)
The size of the buffer for parsing is set using this method. Requests for sizes smaller then the current size will be ignored. Otherwise the buffer will be resized when the next parse is performed.
bufferSize
- The requested buffer size.public int getBufferSize()
public void setRegisteredEncodingAlgorithms(java.util.Map algorithms)
algorithms
- The set of registered algorithms.public java.util.Map getRegisteredEncodingAlgorithms()
public void setExternalVocabularies(java.util.Map referencedVocabualries)
The map (but not the keys and values) be cloned.
referencedVocabualries
- the map of URI to vocabulary.public java.util.Map getExternalVocabularies()
setExternalVocabularies(java.util.Map)
method.
public void setParseFragments(boolean parseFragments)
If the parse fragments property is set to true then then fragments of an XML infoset may be parsed.
parseFragments
- The parse fragments property.public boolean getParseFragments()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |