This interface contains common methods that are not specific to any API associated with the parsing of fast infoset documents.
| Modifier and Type | Field and Description |
|---|---|
| public static final String | BUFFER_SIZE_PROPERTY
The property name to be used for getting and setting the buffer size of a parser. |
| public static final String | EXTERNAL_VOCABULARIES_PROPERTY
The property name to be used for getting and setting the Map containing external vocabularies. |
| public static final String | FORCE_STREAM_CLOSE_PROPERTY
The property name to be used for getting and setting the flag, which will indicate whether underlying Parser's input stream should be really closed |
| public static final String | REGISTERED_ENCODING_ALGORITHMS_PROPERTY
The property name to be used for getting and setting the Map containing encoding algorithms. |
| public static final String | STRING_INTERNING_PROPERTY
The property name to be used for getting and setting the string interning property of a parser. |
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public Map | Returns: the map of URI to vocabulary.
Deprecated
The map returned will not be the same instance and contain
the same entries as the map set by
setExternalVocabularies
method.
Get the map of referenced external vocabularies. |
| public boolean | Returns: The force stream close property.Return the force stream close property. |
| public boolean | |
| public Map | Returns: The set of registered algorithms.Gets the set of registered encoding algorithms. |
| public boolean | |
| public void | |
| public void | setExternalVocabularies(Map<String, ParserVocabulary>
the map of URI to vocabulary. referencedVocabualries)Set the map of referenced external vocabularies. |
| public void | setForceStreamClose(boolean
The force stream close property. needForceStreamClose)Set the force stream close property. |
| public void | setParseFragments(boolean
The parse fragments property. parseFragments)Set the parse fragments property. |
| public void | setRegisteredEncodingAlgorithms(Map<String, EncodingAlgorithm>
The set of registered algorithms. algorithms)Sets the set of registered encoding algorithms. |
| public void | setStringInterning(boolean
The string interning property. stringInterning)Set the string interning property. |
| BUFFER_SIZE_PROPERTY | back to summary |
|---|---|
| public static final String BUFFER_SIZE_PROPERTY The property name to be used for getting and setting the buffer size of a parser. | |
| EXTERNAL_VOCABULARIES_PROPERTY | back to summary |
|---|---|
| public static final String EXTERNAL_VOCABULARIES_PROPERTY The property name to be used for getting and setting the Map containing external vocabularies. | |
| FORCE_STREAM_CLOSE_PROPERTY | back to summary |
|---|---|
| public static final String FORCE_STREAM_CLOSE_PROPERTY The property name to be used for getting and setting the flag, which will indicate whether underlying Parser's input stream should be really closed | |
| REGISTERED_ENCODING_ALGORITHMS_PROPERTY | back to summary |
|---|---|
| public static final String REGISTERED_ENCODING_ALGORITHMS_PROPERTY The property name to be used for getting and setting the Map containing encoding algorithms. | |
| STRING_INTERNING_PROPERTY | back to summary |
|---|---|
| public static final String STRING_INTERNING_PROPERTY The property name to be used for getting and setting the string interning property of a parser. | |
| getBufferSize | back to summary |
|---|---|
| public int getBufferSize() Get the buffer size.
| |
| getExternalVocabularies | back to summary |
|---|---|
| public Map Deprecated The map returned will not be the same instance and contain
the same entries as the map set by Get the map of referenced external vocabularies.
| |
| getForceStreamClose | back to summary |
|---|---|
| public boolean getForceStreamClose() Return the force stream close property.
| |
| getParseFragments | back to summary |
|---|---|
| public boolean getParseFragments() Return the parse fragments property.
| |
| getRegisteredEncodingAlgorithms | back to summary |
|---|---|
| public Map Gets the set of registered encoding algorithms.
| |
| getStringInterning | back to summary |
|---|---|
| public boolean getStringInterning() Return the string interning property.
| |
| setBufferSize | back to summary |
|---|---|
| public void setBufferSize(int bufferSize) Set the buffer size. 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.
| |
| setExternalVocabularies | back to summary |
|---|---|
| public void setExternalVocabularies(Map<String, ParserVocabulary> referencedVocabualries) Set the map of referenced external vocabularies. The map (but not the keys and values) be cloned.
| |
| setForceStreamClose | back to summary |
|---|---|
| public void setForceStreamClose(boolean needForceStreamClose) Set the force stream close property. If the force stream property is set to true then Parser's underlying InputStream will be closed.
| |
| setParseFragments | back to summary |
|---|---|
| public void setParseFragments(boolean parseFragments) Set the parse fragments property. If the parse fragments property is set to true then fragments of an XML infoset may be parsed.
| |
| setRegisteredEncodingAlgorithms | back to summary |
|---|---|
| public void setRegisteredEncodingAlgorithms(Map<String, EncodingAlgorithm> algorithms) Sets the set of registered encoding algorithms.
| |
| setStringInterning | back to summary |
|---|---|
| public void setStringInterning(boolean stringInterning) Set the string interning property. If the string interning property is set to true then
| |