public interface BinXMLEncoder
Modifier and Type | Field and Description |
---|---|
static int |
ENC_IMPLICIT_SCHEMA_REG
If true, - then the schema in the top level xsi:schemaLocation tag is to be used for validation.
|
static int |
ENC_INLINE_TOKEN_DEFS
If true, and if schemaAware = false, then the token definitions will be inlined in the binary stream.
|
static int |
ENC_MID_TIER_OPT
If true, and if schemaAware = false, then the binary stream will be optimized for mid-tier usage and will not depend on metadata repository.
|
static int |
ENC_SAVE_VALIDATION_INFO
If true, then while encoding store information available after a schema validation, which can be accessed using XDK extension APIs for PSVI on Scalable DOM.
|
static int |
ENC_SCHEMA_AWARE
If true, encode the binary stream using a schema.
|
static int |
ENC_SCHEMA_LOCATION_AWARE |
static int |
ENC_XDB_COMPATIBLE
If true, Encoder will work on XDB compatible mode All whitespaces between elements are considered ignorable
|
static int |
ENC_XDB_INLINE_TOKENS |
Modifier and Type | Method and Description |
---|---|
ContentHandler |
getContentHandler()
This is the main SAX handler which receives events such as start and end document, start and end element, character data, etc.
|
DeclHandler |
getDeclHandler()
Returns the DeclHandler to be set in the user application.
|
DTDHandler |
getDTDHandler()
Returns the DTDHandler to be set in the user application
|
ErrorHandler |
getErrorHandler()
Returns the default error handler to be used in the user application
|
LexicalHandler |
getLexicalHandler()
Returns the LexcialHandler to be set in the user application.
|
void |
setProperty(int propType, boolean value)
Set properties for encoding.
|
void |
setSchema(java.lang.String schemaURL)
If ENC_SCHEMA_AWARE is set to true, then this schema will be used for validation and encoding.
|
static final int ENC_SCHEMA_AWARE
static final int ENC_SAVE_VALIDATION_INFO
static final int ENC_IMPLICIT_SCHEMA_REG
static final int ENC_INLINE_TOKEN_DEFS
static final int ENC_MID_TIER_OPT
static final int ENC_XDB_COMPATIBLE
static final int ENC_SCHEMA_LOCATION_AWARE
static final int ENC_XDB_INLINE_TOKENS
void setProperty(int propType, boolean value) throws BinXMLException
propType
- a property constant ENC_* defined in the Encoder.value
- true or falseBinXMLException
void setSchema(java.lang.String schemaURL) throws BinXMLException
schemaURL
- schema to be used for encodingBinXMLException
ContentHandler getContentHandler() throws BinXMLException
BinXMLException
- Raised for any errors encounteredErrorHandler getErrorHandler() throws BinXMLException
BinXMLException
- Raised for any errors encounteredDTDHandler getDTDHandler() throws BinXMLException
BinXMLException
- Raised for any errors encounteredDeclHandler getDeclHandler() throws BinXMLException
BinXMLException
- Raised for any errors encounteredLexicalHandler getLexicalHandler() throws BinXMLException
BinXMLException
- Raised for any errors encountered