public class XmlReader
extends java.lang.Object
On closing the XmlReader (which leads to closing the reader for actual characters):
rasmus_torkel.xml_basic.read.TagNode.closeReader()
function on any node.Constructor and Description |
---|
XmlReader(java.io.Reader reader,
java.lang.String context,
XmlReadOptions readOptions) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the internal reader.
|
TagNodeImpl |
getRootNode()
Gets root node without any preconception of what it should contain.
|
TagNodeImpl |
getRootNode(java.lang.String name)
Gets non-name spaced root node.
|
TagNodeImpl |
getRootNode(java.lang.String relativeName,
XmlNameSpace nameSpace) |
TagNodeImpl |
getRootNode(TagNodeId id) |
boolean |
isOpen() |
static boolean |
isWhiteSpace(java.lang.String s) |
static TagNode |
readerToRoot(java.io.Reader reader,
java.lang.String context,
XmlReadOptions readOptions) |
static TagNode |
readerToRoot(java.io.Reader reader,
java.lang.String context,
XmlReadOptions readOptions,
java.lang.String expectedRelativeName,
XmlNameSpace expectedNameSpace) |
static TagNode |
readerToRoot(java.io.Reader reader,
java.lang.String context,
XmlReadOptions readOptions,
TagNodeId expectedId) |
static TagNode |
xmlFileToRoot(java.io.File xmlFile,
java.lang.String xmlContext,
XmlReadOptions readOptions) |
static TagNode |
xmlFileToRoot(java.io.File xmlFile,
java.lang.String xmlContext,
XmlReadOptions readOptions,
java.lang.String expectedRelativeName,
XmlNameSpace expectedNameSpace) |
static TagNode |
xmlFileToRoot(java.io.File xmlFile,
java.lang.String xmlContext,
XmlReadOptions readOptions,
TagNodeId expectedId) |
static TagNode |
xmlFileToRoot(java.io.File xmlFile,
XmlReadOptions readOptions) |
static TagNode |
xmlFileToRoot(java.io.File xmlFile,
XmlReadOptions readOptions,
java.lang.String expectedRootName) |
static TagNode |
xmlFileToRoot(java.io.File xmlFile,
XmlReadOptions readOptions,
java.lang.String expectedRelativeName,
XmlNameSpace expectedNameSpace) |
static TagNode |
xmlFileToRoot(java.io.File xmlFile,
XmlReadOptions readOptions,
TagNodeId expectedId) |
static TagNode |
xmlStringToRoot(java.lang.String xml,
java.lang.String context,
XmlReadOptions readOptions) |
static TagNode |
xmlStringToRoot(java.lang.String xml,
java.lang.String context,
XmlReadOptions readOptions,
java.lang.String expectedRelativeName) |
static TagNode |
xmlStringToRoot(java.lang.String xml,
java.lang.String context,
XmlReadOptions readOptions,
java.lang.String expectedRelativeName,
XmlNameSpace expectedNameSpace) |
static TagNode |
xmlStringToRoot(java.lang.String xml,
java.lang.String context,
XmlReadOptions readOptions,
TagNodeId expectedId) |
public XmlReader(java.io.Reader reader, java.lang.String context, XmlReadOptions readOptions)
public TagNodeImpl getRootNode(java.lang.String name)
name
- public TagNodeImpl getRootNode(java.lang.String relativeName, XmlNameSpace nameSpace)
public TagNodeImpl getRootNode(TagNodeId id)
public TagNodeImpl getRootNode()
public void close()
public boolean isOpen()
public static boolean isWhiteSpace(java.lang.String s)
public static TagNode readerToRoot(java.io.Reader reader, java.lang.String context, XmlReadOptions readOptions)
public static TagNode readerToRoot(java.io.Reader reader, java.lang.String context, XmlReadOptions readOptions, TagNodeId expectedId)
public static TagNode readerToRoot(java.io.Reader reader, java.lang.String context, XmlReadOptions readOptions, java.lang.String expectedRelativeName, XmlNameSpace expectedNameSpace)
public static TagNode xmlStringToRoot(java.lang.String xml, java.lang.String context, XmlReadOptions readOptions)
public static TagNode xmlStringToRoot(java.lang.String xml, java.lang.String context, XmlReadOptions readOptions, TagNodeId expectedId)
public static TagNode xmlStringToRoot(java.lang.String xml, java.lang.String context, XmlReadOptions readOptions, java.lang.String expectedRelativeName, XmlNameSpace expectedNameSpace)
public static TagNode xmlStringToRoot(java.lang.String xml, java.lang.String context, XmlReadOptions readOptions, java.lang.String expectedRelativeName)
public static TagNode xmlFileToRoot(java.io.File xmlFile, java.lang.String xmlContext, XmlReadOptions readOptions)
public static TagNode xmlFileToRoot(java.io.File xmlFile, java.lang.String xmlContext, XmlReadOptions readOptions, TagNodeId expectedId)
public static TagNode xmlFileToRoot(java.io.File xmlFile, java.lang.String xmlContext, XmlReadOptions readOptions, java.lang.String expectedRelativeName, XmlNameSpace expectedNameSpace)
public static TagNode xmlFileToRoot(java.io.File xmlFile, XmlReadOptions readOptions)
public static TagNode xmlFileToRoot(java.io.File xmlFile, XmlReadOptions readOptions, TagNodeId expectedId)
public static TagNode xmlFileToRoot(java.io.File xmlFile, XmlReadOptions readOptions, java.lang.String expectedRelativeName, XmlNameSpace expectedNameSpace)
public static TagNode xmlFileToRoot(java.io.File xmlFile, XmlReadOptions readOptions, java.lang.String expectedRootName)