|
Oracle® Database XML Java API Reference 11g Release 2 (11.2) E10769-01 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface BinXMLProcessor
A top level interface which represents the Binary XML Processor. Defines APIs to be used for creating BinXMLStream object, registering schemas and DTDs and setting the metadata repository.
| Method Summary | |
|---|---|
BinXMLStream |
createBinXMLStream()Method to create a BinXMLStream object for encoding or decoding using default in memory storage for input and output |
BinXMLStream |
createBinXMLStream(java.sql.Blob blob)Method to create a BinXMLStream object for encoding or decoding |
BinXMLStream |
createBinXMLStream(byte[] array)Method to create a BinXMLStream object for encoding or decoding |
BinXMLStream |
createBinXMLStream(java.io.File file)Method to create a BinXMLStream object for encoding or decoding |
BinXMLStream |
createBinXMLStream(java.io.InputStream in)Method to create a BinXMLStream object for encoding |
BinXMLStream |
createBinXMLStream(java.io.OutputStream out)Method to create a BinXMLStream object for decoding |
BinXMLStream |
createBinXMLStream(java.net.URL url)Method to create a BinXMLStream object for encoding or decoding |
long |
getTokenId(java.lang.String namespace, java.lang.String localName, boolean isAttr)Fetch a token based on the namespace and localName provided by the user. |
javax.xml.namespace.QName |
getTokenName(long tokenId)Fetch a token name based on the tokenId provided by the user. |
void |
registerDTD(DTD dtd)Registers a DTD locally with the BinXMLProcessor |
void |
registerDTD(java.net.URL dtd, java.lang.String rootName)Registers a DTD locally with the BinXMLProcessor |
void |
registerSchema(java.io.InputStream schema)Registers a XML schema locally with the BinXMLProcessor |
void |
registerSchema(java.lang.String sschema, java.io.Reader reader)Registers a XML schema locally with the BinXMLProcessor |
void |
registerSchema(java.net.URL schema)Registers a XML schema locally with the BinXMLProcessor |
void |
registerSchema(java.net.URL schema, java.io.Reader reader)Registers a XML schema locally with the BinXMLProcessor |
void |
setEntityResolver(EntityResolver entResolver)Method to set entity resolver on the BinXMLProcessor. |
void |
setMetadataRepository(BinXMLMetadataProvider provider)Users can plug in their own metadata repository that defines the MetadataProvider interface. |
| Method Detail |
|---|
BinXMLStream createBinXMLStream(java.sql.Blob blob)
throws BinXMLException
blob - The Blob to be used in creating a new BinXMLStreamBinXMLException - Raised for any errors encountered
BinXMLStream createBinXMLStream(java.io.InputStream in)
throws BinXMLException
in - The InputStream to be used in creating a new BinXMLStreamBinXMLException - Raised for any errors encountered
BinXMLStream createBinXMLStream(java.io.OutputStream out)
throws BinXMLException
out - The OutputStream to be used in creating a new BinXMLStreamBinXMLException - Raised for any errors encountered
BinXMLStream createBinXMLStream(java.io.File file)
throws BinXMLException
file - The File to be used in creating a new BinXMLStreamBinXMLException - Raised for any errors encountered
BinXMLStream createBinXMLStream(byte[] array)
throws BinXMLException
array - The byte array to be used in creating a new BinXMLStreamBinXMLException - Raised for any errors encountered
BinXMLStream createBinXMLStream(java.net.URL url)
throws BinXMLException
url - The url to be used in creatinge a new BinXMLStreamBinXMLException - Raised for any errors encountered
BinXMLStream createBinXMLStream()
throws BinXMLException
BinXMLException - Raised for any errors encountered
void setEntityResolver(EntityResolver entResolver)
throws BinXMLException
entResolver - Entity Resolver to be called when the processor needs to resolve system URIs.BinXMLException - Raised for any errors encountered
void registerSchema(java.net.URL schema)
throws BinXMLException
schema - URL specifying the location of the XML Schema to be registeredBinXMLException - Raised for any errors encountered
void registerSchema(java.io.InputStream schema)
throws BinXMLException
schema - InputStream containing the contents of the XML Schema to be registeredBinXMLException - Raised for any errors encountered
void registerSchema(java.net.URL schema,
java.io.Reader reader)
throws BinXMLException
schema - URL of the XML Schema to be registeredreader - containing the XML Schema contents to be registeredBinXMLException - Raised for any errors encountered
void registerSchema(java.lang.String sschema,
java.io.Reader reader)
throws BinXMLException
schema - string representation of schema URLreader - containing the XML Schema contents to be registeredBinXMLException - Raised for any errors encountered
void registerDTD(java.net.URL dtd,
java.lang.String rootName)
throws BinXMLException
dtd - URL for DTD to be registeredrootName - specifies the root elementBinXMLException - Raised for any errors encountered
void registerDTD(DTD dtd)
throws BinXMLException
dtd - input DTD to be registeredBinXMLException - Raised for any errors encountered
long getTokenId(java.lang.String namespace,
java.lang.String localName,
boolean isAttr)
throws BinXMLException
namespace - - namespace URL of the token to be fetchedlocalName - - local name of the token to be fetchedisAttr - - if true will return attribute id else returns element idBinXMLException - Raised for any errors encountered
javax.xml.namespace.QName getTokenName(long tokenId)
throws BinXMLException
BinXMLException - Raised for any errors encountered
void setMetadataRepository(BinXMLMetadataProvider provider)
throws BinXMLException
provider - - metdata provider implementationBinXMLException - Raised for any errors encountered
|
Oracle® Database XML Java API Reference 11g Release 2 (11.2) E10769-01 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||