|
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 | |
---|---|
DecoderBlock |
createDecoderBlock(java.io.InputStream inputStream)
Returns an EXI DecoderBlock according coding options like
CodingMode etc. |
EncoderBlock |
createEncoderBlock(java.io.OutputStream outputStream)
Returns an EXI EncoderBlock according coding options like
CodingMode etc. |
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 |
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. |
Method Detail |
---|
void setFidelityOptions(FidelityOptions fidelityOptions)
fidelityOptions
- new fidelity optionsFidelityOptions
FidelityOptions getFidelityOptions()
FidelityOptions
void 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)
EXIEncoder createEXIEncoder()
EXIEncoder
EXIWriter createEXIWriter()
EXIWriter
EXIDecoder createEXIDecoder()
EXIDecoder
org.xml.sax.XMLReader createEXIReader()
EXIReader
EncoderBlock createEncoderBlock(java.io.OutputStream outputStream)
EncoderBlock
according coding options like
CodingMode etc.
EncoderBlock
DecoderBlock createDecoderBlock(java.io.InputStream inputStream) throws java.io.IOException
DecoderBlock
according coding options like
CodingMode etc.
java.io.IOException
DecoderBlock
TypeEncoder createTypeEncoder()
TypeEncoder
according coding options such as
schema-informed or schema-less grammar and options like
Preserve.LexicalValues
TypeEncoder
TypeDecoder createTypeDecoder()
TypeDecoder
according coding options such as
schema-informed or schema-less grammar and options like
Preserve.LexicalValues
TypeDecoder
|
EXIficient | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |