public interface EXIFactory extends Cloneable
| Modifier and Type | Method and Description |
|---|---|
EXIFactory |
clone()
Returns a shallow copy of this EXI factory.
|
EXIBodyDecoder |
createEXIBodyDecoder()
Returns an
EXIBodyDecoder |
EXIBodyEncoder |
createEXIBodyEncoder()
Returns an
EXIBodyEncoder |
EXIStreamDecoder |
createEXIStreamDecoder()
Returns an
EXIStreamDecoder |
EXIStreamEncoder |
createEXIStreamEncoder()
Returns an
EXIStreamEncoder |
StringDecoder |
createStringDecoder()
Returns an EXI
StringDecoder according coding options |
StringEncoder |
createStringEncoder()
Returns an EXI
StringEncoder according coding options |
TypeDecoder |
createTypeDecoder()
Returns an EXI
TypeDecoder according coding options such as
schema-informed or schema-less grammar and options like
Preserve.LexicalValues |
TypeEncoder |
createTypeEncoder()
Returns an EXI
TypeEncoder according coding options such as
schema-informed or schema-less grammar and options like
Preserve.LexicalValues |
int |
getBlockSize()
The blockSize option specifies the block size used for EXI compression.
|
CodingMode |
getCodingMode()
Returns the currently used
CodingMode. |
QName[] |
getDatatypeRepresentationMapRepresentations()
EXI processors MAY provide the capability to specify different built-in
EXI datatype representations or user-defined datatype representations for
representing specific schema datatypes.
|
QName[] |
getDatatypeRepresentationMapTypes()
EXI processors MAY provide the capability to specify different built-in
EXI datatype representations or user-defined datatype representations for
representing specific schema datatypes.
|
DecodingOptions |
getDecodingOptions()
Returns the options used by the EXI decoder.
|
EncodingOptions |
getEncodingOptions()
Returns the header options used by the EXI encoder.
|
FidelityOptions |
getFidelityOptions()
Returns the fidelity options used by the EXI factory (e.g. preserving XML
comments or DTDs).
|
Grammars |
getGrammars()
Returns the currently used EXI
Grammars. |
int |
getMaximumNumberOfBuiltInElementGrammars()
The EXI profile defines a parameter that restricts the maximum number of
elements for which evolving built-in element grammars can be
instantiated.
|
int |
getMaximumNumberOfBuiltInProductions()
The EXI profile defines a parameter that restricts the maximum number of
top-level productions that can be dynamically inserted in built-in
element grammars.
|
SchemaIdResolver |
getSchemaIdResolver()
Returns schemaId resolver for this factory;
|
SelfContainedHandler |
getSelfContainedHandler()
Returns selfContained element handler.
|
List<String> |
getSharedStrings()
(Experimental) Return list of shared strings.
|
int |
getValueMaxLength()
The default value "unbounded" is assumed when the "valueMaxLength"
element is absent.
|
int |
getValuePartitionCapacity()
The default value "unbounded" is assumed when the
"valuePartitionCapacity" element is absent
|
boolean |
isFragment()
Returns whether we deal with a fragment
|
boolean |
isGrammarLearningDisabled()
The EXI profile defines parameters that restrict grammar learning.
|
boolean |
isLocalValuePartitions()
The localValuePartitions option of the EXI profile is a Boolean used to
indicate whether local value partitions are used. ] The value "0"
indicates that no local value partition is used while "1" represents the
behavior of the EXI 1.0 specification
|
boolean |
isSelfContainedElement(QName element)
Returns boolean value telling whether a certain element is encoded as
selfContained fragment.
|
boolean |
isUsingNonEvolvingGrammars()
(Experimental) Returns whether non-evolving grammars are used
|
Datatype |
registerDatatypeRepresentationMapDatatype(QName dtrMapRepresentation,
Datatype datatype)
The DTR map representation may use built-in String datatypes (e.g.,
exi:string) or use user-defined type representations. |
void |
setBlockSize(int blockSize)
The default blockSize is intentionally large (1,000,000) but can be
reduced for processing large documents on devices with limited memory.
|
void |
setCodingMode(CodingMode codingMode)
Re-sets the coding mode used by the factory.
|
void |
setDatatypeRepresentationMap(QName[] dtrMapTypes,
QName[] dtrMapRepresentations)
By default, each typed value in an EXI stream is represented by the
associated built-in EXI datatype representation.
|
void |
setDecodingOptions(DecodingOptions options)
Sets the options used by the EXI Decoder(e.g., ignore schemaId).
|
void |
setEncodingOptions(EncodingOptions headerOptions)
Sets the header options used by the EXI Encoder(e.g., include EXI Cookie,
EXI Options document).
|
void |
setFidelityOptions(FidelityOptions fidelityOptions)
Sets the fidelity options used by the EXI factory (e.g. preserving XML
comments or DTDs).
|
void |
setFragment(boolean isFragment)
Informs the factory that we are dealing with an XML fragment instead of
an XML document
|
void |
setGrammars(Grammars grammar)
Sets the EXI
Grammars used for coding. |
void |
setLocalValuePartitions(boolean useLocalValuePartitions)
The EXI profile defines a parameter that can disable the use of local
value references.
|
void |
setMaximumNumberOfBuiltInElementGrammars(int maximumNumberOfBuiltInElementGrammars)
The EXI profile defines a parameter that restricts the maximum number of
elements for which evolving built-in element grammars can be
instantiated.
|
void |
setMaximumNumberOfBuiltInProductions(int maximumNumberOfBuiltInProductions)
The EXI profile defines a parameter that restricts the maximum number of
top-level productions that can be dynamically inserted in built-in
element grammars.
|
void |
setSchemaIdResolver(SchemaIdResolver schemaIdResolver)
Sets specific schemaId resolver.
|
void |
setSelfContainedElements(QName[] scElements)
Self-contained elements may be read independently from the rest of the
EXI body, allowing them to be indexed for random access.
|
void |
setSelfContainedElements(QName[] scElements,
SelfContainedHandler scHandler)
Self-contained elements may be read independently from the rest of the
EXI body, allowing them to be indexed for random access.
|
void |
setSharedStrings(List<String> sharedStrings)
(Experimental) Feature to pre-agree on shared strings.
|
void |
setUsingNonEvolvingGrammars(boolean isNonEvolving)
(Experimental) Feature which dictates that grammar does not grow in any
circumstance
|
void |
setValueMaxLength(int valueMaxLength)
The valueMaxLength option specifies the maximum length of value content
items to be considered for addition to the string table.
|
void |
setValuePartitionCapacity(int valuePartitionCapacity)
The valuePartitionCapacity option specifies the maximum number of value
content items in the string table at any given time.
|
void setFidelityOptions(FidelityOptions fidelityOptions)
fidelityOptions - new fidelity optionsFidelityOptionsFidelityOptions getFidelityOptions()
FidelityOptionsvoid setEncodingOptions(EncodingOptions headerOptions)
headerOptions - header optionsEncodingOptionsEncodingOptions getEncodingOptions()
EncodingOptionsvoid setDecodingOptions(DecodingOptions options)
options - decoding optionsdecoding optionsDecodingOptions getDecodingOptions()
DecodingOptionsvoid setSchemaIdResolver(SchemaIdResolver schemaIdResolver)
schemaIdResolver - schemaId resolverSchemaIdResolverSchemaIdResolver getSchemaIdResolver()
void setFragment(boolean isFragment)
isFragment - true if is fragmentboolean isFragment()
void setGrammars(Grammars grammar)
Grammars used for coding.grammar - grammarGrammars getGrammars()
Grammars. By default a
SchemaLessGrammars is used.void setCodingMode(CodingMode codingMode)
codingMode - coding modeCodingMode getCodingMode()
CodingMode. By default BIT_PACKED
is used.void setBlockSize(int blockSize)
blockSize - blockSizeint getBlockSize()
void setValueMaxLength(int valueMaxLength)
See http://www.w3.org/TR/exi/#key-valueMaxLengthOption
valueMaxLength - the maximum string length of value content items to be
considered for addition to the string tableint getValueMaxLength()
void setValuePartitionCapacity(int valuePartitionCapacity)
See http://www.w3.org/TR/exi/#key-valuePartitionCapacityOption
valuePartitionCapacity - the total capacity of value partitions in a string tableint getValuePartitionCapacity()
void setDatatypeRepresentationMap(QName[] dtrMapTypes, QName[] dtrMapRepresentations)
dtrMapTypes - dtrMap typesdtrMapRepresentations - dtrMap representationsDatatype registerDatatypeRepresentationMapDatatype(QName dtrMapRepresentation, Datatype datatype)
exi:string) or use user-defined type representations. This
method allows to register the datatype that should be used.dtrMapRepresentation - dtrMap typedatatype - dtrMap datatypedtrMapRepresentation, or null if there
was no mappingQName[] getDatatypeRepresentationMapTypes()
nullQName[] getDatatypeRepresentationMapRepresentations()
nullvoid setSelfContainedElements(QName[] scElements)
scElements - selfContained elementsvoid setSelfContainedElements(QName[] scElements, SelfContainedHandler scHandler)
scElements - selfContained elementsscHandler - handler for SC elementsboolean isSelfContainedElement(QName element)
element - qualified element nameSelfContainedHandler getSelfContainedHandler()
void setLocalValuePartitions(boolean useLocalValuePartitions)
The localValuePartitions option of the EXI profile is a Boolean used to indicate whether local value partitions are used. ] The value "0" indicates that no local value partition is used while "1" represents the behavior of the EXI 1.0 specification
useLocalValuePartitions - whether to use localValue partitionsboolean isLocalValuePartitions()
void setMaximumNumberOfBuiltInElementGrammars(int maximumNumberOfBuiltInElementGrammars)
The value "unbounded" (-1) indicates that no restrictions are used and represents the behavior of the EXI 1.0 specification
maximumNumberOfBuiltInElementGrammars - maximum number of Built-In element grammarsint getMaximumNumberOfBuiltInElementGrammars()
void setMaximumNumberOfBuiltInProductions(int maximumNumberOfBuiltInProductions)
The value "unbounded" (-1) indicates that no restrictions are used and represents the behavior of the EXI 1.0 specification
maximumNumberOfBuiltInProductions - maximum number of Built-In productionsint getMaximumNumberOfBuiltInProductions()
boolean isGrammarLearningDisabled()
void setSharedStrings(List<String> sharedStrings)
sharedStrings - list of shared stringsList<String> getSharedStrings()
void setUsingNonEvolvingGrammars(boolean isNonEvolving)
isNonEvolving - whether instead of built-in grammars schema-informed Element
Fragment Grammar is usedboolean isUsingNonEvolvingGrammars()
EXIBodyEncoder createEXIBodyEncoder() throws EXIException
EXIBodyEncoderEXIException - EXI exceptionEXIStreamEncoder createEXIStreamEncoder() throws EXIException
EXIStreamEncoderEXIException - EXI exceptionEXIBodyDecoder createEXIBodyDecoder() throws EXIException
EXIBodyDecoderEXIException - EXI exceptionEXIStreamDecoder createEXIStreamDecoder() throws EXIException
EXIStreamDecoderEXIException - EXI exceptionStringEncoder createStringEncoder()
StringEncoder according coding optionsTypeEncoder createTypeEncoder() throws EXIException
TypeEncoder according coding options such as
schema-informed or schema-less grammar and options like
Preserve.LexicalValuesEXIException - EXI exceptionTypeEncoderStringDecoder createStringDecoder()
StringDecoder according coding optionsTypeDecoder createTypeDecoder() throws EXIException
TypeDecoder according coding options such as
schema-informed or schema-less grammar and options like
Preserve.LexicalValuesEXIException - EXI exceptionTypeDecoderEXIFactory clone()
Copyright © 2018 Siemens AG. All rights reserved.