|
EXIficient | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.siemens.ct.exi.helpers.DefaultEXIFactory
public class DefaultEXIFactory
This is the default implementation of an EXIFactory
class.
EXIFactory
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 |
static EXIFactory |
newInstance()
|
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. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static EXIFactory newInstance()
public void setFidelityOptions(FidelityOptions fidelityOptions)
EXIFactory
setFidelityOptions
in interface EXIFactory
fidelityOptions
- new fidelity optionsFidelityOptions
public FidelityOptions getFidelityOptions()
EXIFactory
getFidelityOptions
in interface EXIFactory
FidelityOptions
public void setDatatypeRepresentationMap(DatatypeRepresentation[] datatypeRepresentations)
EXIFactory
setDatatypeRepresentationMap
in interface EXIFactory
public void setGrammar(Grammar grammar)
EXIFactory
Grammar
used for coding.
setGrammar
in interface EXIFactory
public Grammar getGrammar()
EXIFactory
Grammar
. By default a
SchemaLessGrammar
is used.
getGrammar
in interface EXIFactory
public void setFragment(boolean isFragment)
EXIFactory
setFragment
in interface EXIFactory
public boolean isFragment()
EXIFactory
isFragment
in interface EXIFactory
public void setCodingMode(CodingMode codingMode)
EXIFactory
setCodingMode
in interface EXIFactory
public CodingMode getCodingMode()
EXIFactory
CodingMode
. By default BIT_PACKED
is used.
getCodingMode
in interface EXIFactory
public void setEXIBodyOnly(boolean exiBodyOnly)
EXIFactory
setEXIBodyOnly
in interface EXIFactory
public boolean isEXIBodyOnly()
isEXIBodyOnly
in interface EXIFactory
public EXIEncoder createEXIEncoder()
EXIFactory
EXIEncoder
createEXIEncoder
in interface EXIFactory
public EXIWriter createEXIWriter()
EXIFactory
EXIWriter
createEXIWriter
in interface EXIFactory
public EXIDecoder createEXIDecoder()
EXIFactory
EXIDecoder
createEXIDecoder
in interface EXIFactory
public org.xml.sax.XMLReader createEXIReader()
EXIFactory
EXIReader
createEXIReader
in interface EXIFactory
public TypeEncoder createTypeEncoder()
EXIFactory
TypeEncoder
according coding options such as
schema-informed or schema-less grammar and options like
Preserve.LexicalValues
createTypeEncoder
in interface EXIFactory
TypeEncoder
public TypeDecoder createTypeDecoder()
EXIFactory
TypeDecoder
according coding options such as
schema-informed or schema-less grammar and options like
Preserve.LexicalValues
createTypeDecoder
in interface EXIFactory
TypeDecoder
public EncoderBlock createEncoderBlock(java.io.OutputStream outputStream)
EXIFactory
EncoderBlock
according coding options like
CodingMode etc.
createEncoderBlock
in interface EXIFactory
EncoderBlock
public DecoderBlock createDecoderBlock(java.io.InputStream inputStream) throws java.io.IOException
EXIFactory
DecoderBlock
according coding options like
CodingMode etc.
createDecoderBlock
in interface EXIFactory
java.io.IOException
DecoderBlock
|
EXIficient | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |