|
EXIficient | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface EXIFactory
An EXI Factory is used for setting EXI coding options on one hand and retrieving the according reader and writer classes on the other hand.
| Method Summary | |
|---|---|
EXIFactory |
clone()
Returns a shallow copy of this EXI factory. |
EXIDecoder |
createEXIDecoder()
Returns an EXIDecoder |
EXIEncoder |
createEXIEncoder()
Returns an EXIEncoder |
org.xml.sax.XMLReader |
createEXIReader()
Returns an EXIReader |
EXIWriter |
createEXIWriter()
Returns an EXIWriter |
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 |
CodingMode |
getCodingMode()
Returns the currently used CodingMode. |
FidelityOptions |
getFidelityOptions()
Returns the fidelity options used by the EXI factory (e.g. preserving XML comments or DTDs). |
Grammar |
getGrammar()
Returns the currently used EXI Grammar. |
boolean |
isEXIBodyOnly()
|
boolean |
isFragment()
Returns whether we deal with a fragment |
boolean |
isSelfContainedElement(javax.xml.namespace.QName element)
Returns boolean value telling whether a certain element is encoded as selfContained fragment. |
void |
setCodingMode(CodingMode codingMode)
Re-sets the coding mode used by the factory. |
void |
setDatatypeRepresentationMap(DatatypeRepresentation[] datatypeRepresentations)
By default, each typed value in an EXI stream is represented by the associated built-in EXI datatype representation. |
void |
setEXIBodyOnly(boolean exiBodyOnly)
Sets whether an EXI Body is preceded by an EXI Header. |
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 |
setGrammar(Grammar grammar)
Sets the EXI Grammar used for coding. |
void |
setSelfContainedElements(javax.xml.namespace.QName[] scElements)
Self-contained elements may be read independently from the rest of the EXI body, allowing them to be indexed for random access. |
| Method Detail |
|---|
void setFidelityOptions(FidelityOptions fidelityOptions)
fidelityOptions - new fidelity optionsFidelityOptionsFidelityOptions getFidelityOptions()
FidelityOptionsvoid setFragment(boolean isFragment)
boolean isFragment()
void setGrammar(Grammar grammar)
Grammar used for coding.
Grammar getGrammar()
Grammar. By default a
SchemaLessGrammar is used.
void setCodingMode(CodingMode codingMode)
codingMode - CodingMode getCodingMode()
CodingMode. By default BIT_PACKED
is used.
void setEXIBodyOnly(boolean exiBodyOnly)
exiBodyOnly - boolean isEXIBodyOnly()
void setDatatypeRepresentationMap(DatatypeRepresentation[] datatypeRepresentations)
void setSelfContainedElements(javax.xml.namespace.QName[] scElements)
scElements - boolean isSelfContainedElement(javax.xml.namespace.QName element)
element - EXIEncoder createEXIEncoder()
EXIEncoder
EXIWriter createEXIWriter()
EXIWriter
EXIDecoder createEXIDecoder()
EXIDecoder
org.xml.sax.XMLReader createEXIReader()
EXIReader
TypeEncoder createTypeEncoder()
TypeEncoder according coding options such as
schema-informed or schema-less grammar and options like
Preserve.LexicalValues
TypeEncoderTypeDecoder createTypeDecoder()
TypeDecoder according coding options such as
schema-informed or schema-less grammar and options like
Preserve.LexicalValues
TypeDecoderEXIFactory clone()
|
EXIficient | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||