org.apache.xmlbeans
Class XmlToken.Factory

java.lang.Object
  extended by org.apache.xmlbeans.XmlToken.Factory
Enclosing interface:
XmlToken

public static final class XmlToken.Factory
extends Object

A class with methods for creating instances of XmlToken.


Method Summary
static XmlToken newInstance()
          Creates an empty instance of XmlToken
static XmlToken newInstance(XmlOptions options)
          Creates an empty instance of XmlToken
static org.apache.xmlbeans.xml.stream.XMLInputStream newValidatingXMLInputStream(org.apache.xmlbeans.xml.stream.XMLInputStream xis)
          Deprecated. XMLInputStream was deprecated by XMLStreamReader from STaX - jsr173 API.
static org.apache.xmlbeans.xml.stream.XMLInputStream newValidatingXMLInputStream(org.apache.xmlbeans.xml.stream.XMLInputStream xis, XmlOptions options)
          Deprecated. XMLInputStream was deprecated by XMLStreamReader from STaX - jsr173 API.
static XmlToken newValue(Object obj)
          Creates an immutable XmlToken value
static XmlToken parse(File f)
          Parses a XmlToken fragment from a File.
static XmlToken parse(File f, XmlOptions options)
          Parses a XmlToken fragment from a File.
static XmlToken parse(InputStream is)
          Parses a XmlToken fragment from an InputStream.
static XmlToken parse(InputStream is, XmlOptions options)
          Parses a XmlToken fragment from an InputStream.
static XmlToken parse(Node node)
          Parses a XmlToken fragment from a DOM Node.
static XmlToken parse(Node node, XmlOptions options)
          Parses a XmlToken fragment from a DOM Node.
static XmlToken parse(Reader r)
          Parses a XmlToken fragment from a Reader.
static XmlToken parse(Reader r, XmlOptions options)
          Parses a XmlToken fragment from a Reader.
static XmlToken parse(String s)
          Parses a XmlToken fragment from a String.
static XmlToken parse(String s, XmlOptions options)
          Parses a XmlToken fragment from a String.
static XmlToken parse(URL u)
          Parses a XmlToken fragment from a URL.
static XmlToken parse(URL u, XmlOptions options)
          Parses a XmlToken fragment from a URL.
static XmlToken parse(org.apache.xmlbeans.xml.stream.XMLInputStream xis)
          Deprecated. XMLInputStream was deprecated by XMLStreamReader from STaX - jsr173 API.
static XmlToken parse(org.apache.xmlbeans.xml.stream.XMLInputStream xis, XmlOptions options)
          Deprecated. XMLInputStream was deprecated by XMLStreamReader from STaX - jsr173 API.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

newInstance

public static XmlToken newInstance()
Creates an empty instance of XmlToken


newInstance

public static XmlToken newInstance(XmlOptions options)
Creates an empty instance of XmlToken


newValue

public static XmlToken newValue(Object obj)
Creates an immutable XmlToken value


parse

public static XmlToken parse(String s)
                      throws XmlException
Parses a XmlToken fragment from a String. For example: "<xml-fragment>string to collapse</xml-fragment>".

Throws:
XmlException

parse

public static XmlToken parse(String s,
                             XmlOptions options)
                      throws XmlException
Parses a XmlToken fragment from a String. For example: "<xml-fragment>string to collapse</xml-fragment>".

Throws:
XmlException

parse

public static XmlToken parse(File f)
                      throws XmlException,
                             IOException
Parses a XmlToken fragment from a File.

Throws:
XmlException
IOException

parse

public static XmlToken parse(File f,
                             XmlOptions options)
                      throws XmlException,
                             IOException
Parses a XmlToken fragment from a File.

Throws:
XmlException
IOException

parse

public static XmlToken parse(URL u)
                      throws XmlException,
                             IOException
Parses a XmlToken fragment from a URL.

Throws:
XmlException
IOException

parse

public static XmlToken parse(URL u,
                             XmlOptions options)
                      throws XmlException,
                             IOException
Parses a XmlToken fragment from a URL.

Throws:
XmlException
IOException

parse

public static XmlToken parse(InputStream is)
                      throws XmlException,
                             IOException
Parses a XmlToken fragment from an InputStream.

Throws:
XmlException
IOException

parse

public static XmlToken parse(InputStream is,
                             XmlOptions options)
                      throws XmlException,
                             IOException
Parses a XmlToken fragment from an InputStream.

Throws:
XmlException
IOException

parse

public static XmlToken parse(Reader r)
                      throws XmlException,
                             IOException
Parses a XmlToken fragment from a Reader.

Throws:
XmlException
IOException

parse

public static XmlToken parse(Reader r,
                             XmlOptions options)
                      throws XmlException,
                             IOException
Parses a XmlToken fragment from a Reader.

Throws:
XmlException
IOException

parse

public static XmlToken parse(Node node)
                      throws XmlException
Parses a XmlToken fragment from a DOM Node.

Throws:
XmlException

parse

public static XmlToken parse(Node node,
                             XmlOptions options)
                      throws XmlException
Parses a XmlToken fragment from a DOM Node.

Throws:
XmlException

parse

public static XmlToken parse(org.apache.xmlbeans.xml.stream.XMLInputStream xis)
                      throws XmlException,
                             org.apache.xmlbeans.xml.stream.XMLStreamException
Deprecated. XMLInputStream was deprecated by XMLStreamReader from STaX - jsr173 API.

Parses a XmlToken fragment from an XMLInputStream.

Throws:
XmlException
org.apache.xmlbeans.xml.stream.XMLStreamException

parse

public static XmlToken parse(org.apache.xmlbeans.xml.stream.XMLInputStream xis,
                             XmlOptions options)
                      throws XmlException,
                             org.apache.xmlbeans.xml.stream.XMLStreamException
Deprecated. XMLInputStream was deprecated by XMLStreamReader from STaX - jsr173 API.

Parses a XmlToken fragment from an XMLInputStream.

Throws:
XmlException
org.apache.xmlbeans.xml.stream.XMLStreamException

newValidatingXMLInputStream

public static org.apache.xmlbeans.xml.stream.XMLInputStream newValidatingXMLInputStream(org.apache.xmlbeans.xml.stream.XMLInputStream xis)
                                                                                 throws XmlException,
                                                                                        org.apache.xmlbeans.xml.stream.XMLStreamException
Deprecated. XMLInputStream was deprecated by XMLStreamReader from STaX - jsr173 API.

Returns a validating XMLInputStream.

Throws:
XmlException
org.apache.xmlbeans.xml.stream.XMLStreamException

newValidatingXMLInputStream

public static org.apache.xmlbeans.xml.stream.XMLInputStream newValidatingXMLInputStream(org.apache.xmlbeans.xml.stream.XMLInputStream xis,
                                                                                        XmlOptions options)
                                                                                 throws XmlException,
                                                                                        org.apache.xmlbeans.xml.stream.XMLStreamException
Deprecated. XMLInputStream was deprecated by XMLStreamReader from STaX - jsr173 API.

Returns a validating XMLInputStream.

Throws:
XmlException
org.apache.xmlbeans.xml.stream.XMLStreamException