|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.openexi.sax.ReaderSupport
org.openexi.sax.EXIReader
public final class EXIReader
EXIReader implements the SAX XMLReader to provide a convenient and familiar interface for decoding an EXI stream.
| Constructor Summary | |
|---|---|
EXIReader()
|
|
| Method Summary | |
|---|---|
boolean |
getFeature(java.lang.String name)
Get features for the SAX parser. |
java.lang.Object |
getProperty(java.lang.String name)
Use to retrieve the name of the lexical handler, currently the only property recognized by this class. |
void |
setAlignmentType(AlignmentType alignmentType)
Set the bit alignment style used to compile the EXI input stream. |
void |
setBlockSize(int blockSize)
Set the size, in number of values, of the information that will be processed as a chunk of the entire EXI stream. |
void |
setDatatypeRepresentationMap(QName[] dtrm,
int n_bindings)
Set a datatype representation map. |
void |
setEXISchemaResolver(EXISchemaResolver schemaResolver)
Set the EXISchemaResolver to retrieve the schema needed to decode the current EXI stream. |
void |
setFeature(java.lang.String name,
boolean value)
Set features for the SAX parser. |
void |
setFragment(boolean isFragment)
Set to true if the EXI input stream is an XML fragment (a non-compliant XML document with multiple root elements). |
void |
setLexicalHandler(org.xml.sax.ext.LexicalHandler lexicalHandler)
Set a SAX lexical handler to receive SAX lexical events. |
void |
setPreserveLexicalValues(boolean preserveLexicalValues)
Set to true if the EXI input stream was compiled with the Preserve Lexical Values set to true. |
void |
setProperty(java.lang.String name,
java.lang.Object value)
This method wraps the friendlier setLexicalHandler method to provide syntax familiar to experienced SAX programmers. |
void |
setValueMaxLength(int valueMaxLength)
Set the maximum length of a string that will be stored for reuse in the String Table. |
void |
setValuePartitionCapacity(int valuePartitionCapacity)
Set the maximum number of values in the String Table. |
| Methods inherited from class org.openexi.sax.ReaderSupport |
|---|
getContentHandler, setContentHandler, setGrammarCache |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.xml.sax.XMLReader |
|---|
getContentHandler, getDTDHandler, getEntityResolver, getErrorHandler, parse, parse, setContentHandler, setDTDHandler, setEntityResolver, setErrorHandler |
| Methods inherited from interface org.xml.sax.Attributes |
|---|
getIndex, getIndex, getLength, getLocalName, getQName, getType, getType, getType, getURI, getValue, getValue, getValue |
| Constructor Detail |
|---|
public EXIReader()
| Method Detail |
|---|
public final void setProperty(java.lang.String name,
java.lang.Object value)
throws org.xml.sax.SAXNotRecognizedException
http://xml.org/sax/properties/lexical-handler
setProperty in interface org.xml.sax.XMLReadername - must equal "http://xml.org/sax/properties/lexical-handler"value - an org.xml.sax.ext.LexicalHandler object
org.xml.sax.SAXNotRecognizedException
public final java.lang.Object getProperty(java.lang.String name)
throws org.xml.sax.SAXNotRecognizedException
getProperty in interface org.xml.sax.XMLReaderorg.xml.sax.SAXNotRecognizedException
public final void setFeature(java.lang.String name,
boolean value)
throws org.xml.sax.SAXNotRecognizedException,
org.xml.sax.SAXNotSupportedException
EXIReader.setFeature("http://xml.org/sax/features/namespaces", true); and
EXIReader.setFeature("http://xml.org/sax/features/namespace-prefixes", false);
setFeature in interface org.xml.sax.XMLReaderorg.xml.sax.SAXNotRecognizedException
org.xml.sax.SAXNotSupportedException
public final boolean getFeature(java.lang.String name)
throws org.xml.sax.SAXNotRecognizedException
getFeature in interface org.xml.sax.XMLReaderorg.xml.sax.SAXNotRecognizedException
public final void setAlignmentType(AlignmentType alignmentType)
throws org.openexi.proc.common.EXIOptionsException
alignmentType - AlignmentType
org.openexi.proc.common.EXIOptionsExceptionpublic final void setFragment(boolean isFragment)
isFragment - true if the EXI input stream is an XML fragment.
public final void setPreserveLexicalValues(boolean preserveLexicalValues)
throws org.openexi.proc.common.EXIOptionsException
preserveLexicalValues - set to true if the EXI input stream was compiled with
Preserve Lexical Values set to true.
org.openexi.proc.common.EXIOptionsExceptionpublic final void setEXISchemaResolver(EXISchemaResolver schemaResolver)
schemaResolver - EXISchemaResolver
public final void setDatatypeRepresentationMap(QName[] dtrm,
int n_bindings)
throws org.openexi.proc.common.EXIOptionsException
dtrm - a sequence of pairs of datatype qname and datatype representation qnamen_bindings - the number of qname pairs
org.openexi.proc.common.EXIOptionsException
public final void setBlockSize(int blockSize)
throws org.openexi.proc.common.EXIOptionsException
blockSize - number of values in each processing block. Default is 1,000,000.
org.openexi.proc.common.EXIOptionsExceptionpublic final void setValueMaxLength(int valueMaxLength)
valueMaxLength - maximum length of entries in the String Table.public final void setValuePartitionCapacity(int valuePartitionCapacity)
valuePartitionCapacity - maximum number of entries in the String Tablepublic void setLexicalHandler(org.xml.sax.ext.LexicalHandler lexicalHandler)
lexicalHandler - SAX lexical handler
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||