public interface FastInfosetSerializer
This interface contains common methods that are not specific to any API associated with the serialization of XML Infoset to fast infoset documents.
Modifier and Type | Field and Description |
---|---|
static int |
ATTRIBUTE_VALUE_MAP_MEMORY_CONSTRAINT
The default value for limit on the size of indexed Map for attribute values
Limit is measured in bytes not in number of entries
|
static String |
BUFFER_SIZE_PROPERTY
The property name to be used for getting and setting the buffer size
of a parser.
|
static int |
CHARACTER_CONTENT_CHUNK_MAP_MEMORY_CONSTRAINT
The default value for limit on the size of indexed Map for attribute values
Limit is measured in bytes not in number of entries
|
static String |
EXTERNAL_VOCABULARIES_PROPERTY
The property name to be used for getting and setting the
Map containing external vocabularies.
|
static String |
IGNORE_COMMENTS_FEATURE
The feature to ignore comments.
|
static String |
IGNORE_DTD_FEATURE
The feature to ignore the document type declaration and the
internal subset.
|
static String |
IGNORE_PROCESSING_INSTRUCTIONS_FEATURE
The feature to ignore processing instructions.
|
static String |
IGNORE_WHITE_SPACE_TEXT_CONTENT_FEATURE
The feature to ignore text content that consists completely of white
space characters.
|
static int |
MAX_ATTRIBUTE_VALUE_SIZE
The default maximum size of the attribute values, that will be indexed.
|
static int |
MAX_CHARACTER_CONTENT_CHUNK_SIZE
The default maximum size of the character content chunks,
that will be indexed.
|
static int |
MIN_ATTRIBUTE_VALUE_SIZE
The default minimum size of the attribute values, that will be indexed.
|
static int |
MIN_CHARACTER_CONTENT_CHUNK_SIZE
The default minimum size of the character content chunks,
that will be indexed.
|
static String |
REGISTERED_ENCODING_ALGORITHMS_PROPERTY
The property name to be used for getting and setting the
Map containing encoding algorithms.
|
static String |
UTF_16BE
The character encoding scheme string for UTF-16BE.
|
static String |
UTF_8
The character encoding scheme string for UTF-8.
|
Modifier and Type | Method and Description |
---|---|
int |
getAttributeValueMapMemoryLimit()
Gets the limit on the memory size of Map of attribute values
that will be indexed.
|
int |
getCharacterContentChunkMapMemoryLimit()
Gets the limit on the memory size, allocated for indexed character
content chunks.
|
String |
getCharacterEncodingScheme()
Gets the character encoding scheme.
|
boolean |
getIgnoreComments()
Get the
IGNORE_COMMENTS_FEATURE . |
boolean |
getIgnoreDTD()
Get the
IGNORE_DTD_FEATURE . |
boolean |
getIgnoreProcesingInstructions()
|
boolean |
getIgnoreWhiteSpaceTextContent()
|
int |
getMaxAttributeValueSize()
Gets the maximum size of attribute values
that will be indexed.
|
int |
getMaxCharacterContentChunkSize()
Gets the maximum size of character content chunks
that might be indexed.
|
int |
getMinAttributeValueSize()
Gets the minimum size of attribute values
that will be indexed.
|
int |
getMinCharacterContentChunkSize()
Gets the minimum size of character content chunks
that will be indexed.
|
Map |
getRegisteredEncodingAlgorithms()
Gets the set of registered encoding algorithms.
|
VocabularyApplicationData |
getVocabularyApplicationData()
Get the application data associated with the serializer vocabulary.
|
void |
reset()
Reset the serializer for reuse serializing another XML infoset.
|
void |
setAttributeValueMapMemoryLimit(int size)
Sets the limit on the memory size of Map of attribute values
that will be indexed.
|
void |
setCharacterContentChunkMapMemoryLimit(int size)
Sets the limit on the memory size, allocated for indexed character
content chunks.
|
void |
setCharacterEncodingScheme(String characterEncodingScheme)
Sets the character encoding scheme.
|
void |
setExternalVocabulary(ExternalVocabulary v)
Set the external vocabulary that shall be used when serializing.
|
void |
setIgnoreComments(boolean ignoreComments)
Set the
IGNORE_COMMENTS_FEATURE . |
void |
setIgnoreDTD(boolean ignoreDTD)
Set the
IGNORE_DTD_FEATURE . |
void |
setIgnoreProcesingInstructions(boolean ignoreProcesingInstructions)
|
void |
setIgnoreWhiteSpaceTextContent(boolean ignoreWhiteSpaceTextContent)
|
void |
setMaxAttributeValueSize(int size)
Sets the maximum size of attribute values
that will be indexed.
|
void |
setMaxCharacterContentChunkSize(int size)
Sets the maximum size of character content chunks
that might be indexed.
|
void |
setMinAttributeValueSize(int size)
Sets the minimum size of attribute values
that will be indexed.
|
void |
setMinCharacterContentChunkSize(int size)
Sets the minimum size of character content chunks
that will be indexed.
|
void |
setOutputStream(OutputStream s)
Set the OutputStream to serialize the XML infoset to a
fast infoset document.
|
void |
setRegisteredEncodingAlgorithms(Map algorithms)
Sets the set of registered encoding algorithms.
|
void |
setVocabularyApplicationData(VocabularyApplicationData data)
Set the application data to be associated with the serializer vocabulary.
|
static final String IGNORE_DTD_FEATURE
The default value is false. If true a serializer shall ignore document type declaration and the internal subset.
static final String IGNORE_COMMENTS_FEATURE
The default value is false. If true a serializer shall ignore comments and shall not serialize them.
static final String IGNORE_PROCESSING_INSTRUCTIONS_FEATURE
The default value is false. If true a serializer shall ignore processing instructions and shall not serialize them.
static final String IGNORE_WHITE_SPACE_TEXT_CONTENT_FEATURE
The default value is false. If true a serializer shall ignore text content that consists completely of white space characters.
static final String BUFFER_SIZE_PROPERTY
static final String REGISTERED_ENCODING_ALGORITHMS_PROPERTY
static final String EXTERNAL_VOCABULARIES_PROPERTY
static final int MIN_CHARACTER_CONTENT_CHUNK_SIZE
static final int MAX_CHARACTER_CONTENT_CHUNK_SIZE
static final int CHARACTER_CONTENT_CHUNK_MAP_MEMORY_CONSTRAINT
static final int MIN_ATTRIBUTE_VALUE_SIZE
static final int MAX_ATTRIBUTE_VALUE_SIZE
static final int ATTRIBUTE_VALUE_MAP_MEMORY_CONSTRAINT
static final String UTF_8
static final String UTF_16BE
void setIgnoreDTD(boolean ignoreDTD)
IGNORE_DTD_FEATURE
.ignoreDTD
- true if the feature shall be ignored.boolean getIgnoreDTD()
IGNORE_DTD_FEATURE
.void setIgnoreComments(boolean ignoreComments)
IGNORE_COMMENTS_FEATURE
.ignoreComments
- true if the feature shall be ignored.boolean getIgnoreComments()
IGNORE_COMMENTS_FEATURE
.void setIgnoreProcesingInstructions(boolean ignoreProcesingInstructions)
ignoreProcesingInstructions
- true if the feature shall be ignored.boolean getIgnoreProcesingInstructions()
void setIgnoreWhiteSpaceTextContent(boolean ignoreWhiteSpaceTextContent)
ignoreWhiteSpaceTextContent
- true if the feature shall be ignored.boolean getIgnoreWhiteSpaceTextContent()
void setCharacterEncodingScheme(String characterEncodingScheme)
characterEncodingScheme
- The set of registered algorithms.String getCharacterEncodingScheme()
void setRegisteredEncodingAlgorithms(Map algorithms)
algorithms
- The set of registered algorithms.Map getRegisteredEncodingAlgorithms()
int getMinCharacterContentChunkSize()
void setMinCharacterContentChunkSize(int size)
size
- the minimum character content chunk size.int getMaxCharacterContentChunkSize()
void setMaxCharacterContentChunkSize(int size)
size
- the maximum character content chunk size.int getCharacterContentChunkMapMemoryLimit()
void setCharacterContentChunkMapMemoryLimit(int size)
size
- the limit on the memory size, allocated for indexed character
content chunks.int getMinAttributeValueSize()
void setMinAttributeValueSize(int size)
size
- the minimum attribute values size.int getMaxAttributeValueSize()
void setMaxAttributeValueSize(int size)
size
- the maximum attribute values size.int getAttributeValueMapMemoryLimit()
void setAttributeValueMapMemoryLimit(int size)
size
- The attribute value size limit. Any value less
that a length of size limit will be indexed.void setExternalVocabulary(ExternalVocabulary v)
v
- the vocabulary.void setVocabularyApplicationData(VocabularyApplicationData data)
data
- the application data.VocabularyApplicationData getVocabularyApplicationData()
void reset()
void setOutputStream(OutputStream s)
s
- the OutputStream where the fast infoset document is written to.Copyright © 2015 Oracle Corpration. All Rights Reserved.