public interface FastInfosetParser
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 |
---|---|
static String |
BUFFER_SIZE_PROPERTY
The property name to be used for getting and setting the buffer size
of a parser.
|
static String |
EXTERNAL_VOCABULARIES_PROPERTY
The property name to be used for getting and setting the
Map containing external vocabularies.
|
static 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
|
static String |
REGISTERED_ENCODING_ALGORITHMS_PROPERTY
The property name to be used for getting and setting the
Map containing encoding algorithms.
|
static 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 |
---|---|
int |
getBufferSize()
Get the buffer size.
|
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 |
getForceStreamClose()
Return the force stream close property.
|
boolean |
getParseFragments()
Return the parse fragments property.
|
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(Map referencedVocabualries)
Set the map of referenced external vocabularies.
|
void |
setForceStreamClose(boolean needForceStreamClose)
Set the force stream close property.
|
void |
setParseFragments(boolean parseFragments)
Set the parse fragments property.
|
void |
setRegisteredEncodingAlgorithms(Map algorithms)
Sets the set of registered encoding algorithms.
|
void |
setStringInterning(boolean stringInterning)
Set the string interning property.
|
static final String STRING_INTERNING_PROPERTY
static final String BUFFER_SIZE_PROPERTY
static final String REGISTERED_ENCODING_ALGORITHMS_PROPERTY
static final String EXTERNAL_VOCABULARIES_PROPERTY
static final String FORCE_STREAM_CLOSE_PROPERTY
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.boolean getStringInterning()
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.int getBufferSize()
void setRegisteredEncodingAlgorithms(Map algorithms)
algorithms
- The set of registered algorithms.Map getRegisteredEncodingAlgorithms()
void setExternalVocabularies(Map referencedVocabualries)
The map (but not the keys and values) be cloned.
referencedVocabualries
- the map of URI to vocabulary.Map getExternalVocabularies()
setExternalVocabularies(java.util.Map)
method.void setParseFragments(boolean parseFragments)
If the parse fragments property is set to true then fragments of an XML infoset may be parsed.
parseFragments
- The parse fragments property.boolean getParseFragments()
void setForceStreamClose(boolean needForceStreamClose)
If the force stream property is set to true then Parser's underlying InputStream will be closed.
needForceStreamClose
- The force stream close property.boolean getForceStreamClose()
Copyright © 2012 Oracle Corpration. All Rights Reserved.