|
Oracle® Database XML Java API Reference 12c Release 1 (12.1) E15981-09 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface OXQItemAccessor
Extensions to javax.xml.xquery.XQItemAccessor.
Use method OXQView.getItemAccessor(XQItemAccessor) to access the extensions. For example:
OXQDataSource ds = new OXQDataSource(); XQConnection con = ds.getConnection(); XQItem item = con.createItemFromDocument(...); // XQItem extends XQItemAccessor OXQItemAccessor oitem = OXQView.getItemAccessor(item); ...
| Method Summary | |
|---|---|
java.io.InputStream |
getItemAsInputStream(java.util.Properties props)Reads the current item as an InputStream object, as described in Section 12 Serialization, XQuery API for Java (XQJ) 1.0. |
javax.xml.namespace.QName |
getNodeName()Returns the node name for this item, if the item is an element or an attribute node. |
XQItemAccessor |
getXQView()Returns the XQItemAccessor instance corresponding to this instance. |
| Method Detail |
|---|
XQItemAccessor getXQView()
XQItemAccessor instance corresponding to this instance.XQItemAccessor instance
java.io.InputStream getItemAsInputStream(java.util.Properties props)
throws XQException
InputStream object, as described in Section 12 Serialization, XQuery API for Java (XQJ) 1.0. The serialization process might fail, in which case an exception is thrown.
While the stream is being read, the application must not do any other concurrent operations on the underlying XQItem or XQSequence instance. If the underlying sequence is repositioned or the state of the underlying item or sequence is changed, the behavior of the stream is undefined.
props - specifies the serialization parameters, null is considered equivalent to an empty Properties objectXQException - if (1) there are errors accessing the current item or the underlying sequence, (2) the underlying sequence or item is in a closed state, (3) in the case of a forward only sequence, a get or write method has already been invoked on the current item, or (4) in case of an error during serialization
javax.xml.namespace.QName getNodeName()
throws XQException
null for all other kinds of items.XQException - if (1) there are errors accessing the current item, (2) if the underlying sequence or item is in a closed state
|
Oracle® Database XML Java API Reference 12c Release 1 (12.1) E15981-09 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright © 2003, 2014, Oracle and/or its affiliates. All rights reserved.