XMLBindings insteadpublic class Bindings extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_NODE_NAME
Deprecated.
|
static String |
ID_ATTR
Deprecated.
|
static QName |
NODE_QNAME
Deprecated.
|
static String |
PREFIX
Deprecated.
|
static String |
ROOT_NAME
Deprecated.
|
static QName |
ROOT_QNAME
Deprecated.
|
static String |
SOURCEID_ATTR
Deprecated.
|
static String |
STATUS_ATTR
Deprecated.
|
static String |
URI
Deprecated.
|
| Constructor and Description |
|---|
Bindings()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static Tree |
fromElement(Element element)
Deprecated.
|
static Tree |
fromReader(Reader reader)
Deprecated.
|
static Tree |
fromStream(InputStream stream)
Deprecated.
Binds an
InputStream to a Tree. |
static Node |
nodeFromElement(Element element)
Deprecated.
|
static Node |
nodeFromReader(Reader r)
Deprecated.
|
static Node |
nodeFromStream(InputStream in)
Deprecated.
Binds an
InputStream to a Node. |
static Element |
nodeToElement(Node node,
QName... name)
Deprecated.
|
static void |
nodeToWriter(Node node,
Writer stream,
QName... name)
Deprecated.
|
static Element |
toElement(Tree tree)
Deprecated.
|
static String |
toText(Tree t)
Deprecated.
|
static void |
toWriter(Tree t,
Writer stream,
boolean... writeDeclaration)
Deprecated.
|
public static final String ROOT_NAME
public static final String PREFIX
public static final String URI
public static final QName ROOT_QNAME
public static final String DEFAULT_NODE_NAME
public static final QName NODE_QNAME
public static final String ID_ATTR
public static final String STATUS_ATTR
public static final String SOURCEID_ATTR
public static String toText(Tree t) throws Exception
t - the treeException - if the binding failspublic static void toWriter(Tree t, Writer stream, boolean... writeDeclaration) throws Exception
t - the treestream - the writerwriteDeclaration - (optional) true if the binding is to include the XML declaration (default),
false otherwiseException - if the binding failspublic static Tree fromReader(Reader reader) throws Exception
reader - the readerException - if the binding failspublic static Tree fromStream(InputStream stream) throws Exception
InputStream to a Tree.stream - streamException - if the binding failspublic static Node nodeFromReader(Reader r) throws Exception
r - the readerException - if the binding failspublic static Node nodeFromStream(InputStream in) throws Exception
InputStream to a Node.in - the InputStreamNodeException - if the binding failspublic static Element toElement(Tree tree) throws Exception
tree - the treeException - if the binding failspublic static Tree fromElement(Element element) throws Exception
element - the elementException - if the binding failspublic static Node nodeFromElement(Element element) throws Exception
element - the elementException - if the binding failspublic static Element nodeToElement(Node node, QName... name) throws Exception
node - the nodename - (optional) a name for the element.Exception - if the binding failsCopyright © 2018. All Rights Reserved.