Package org.apache.xmlbeans
Class XmlString.Factory
- java.lang.Object
-
- org.apache.xmlbeans.XmlString.Factory
-
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static XmlString
newInstance()
Creates an empty instance ofXmlString
static XmlString
newInstance(XmlOptions options)
Creates an empty instance ofXmlString
static XMLInputStream
newValidatingXMLInputStream(XMLInputStream xis)
Deprecated.XMLInputStream was deprecated by XMLStreamReader from STaX - jsr173 API.static XMLInputStream
newValidatingXMLInputStream(XMLInputStream xis, XmlOptions options)
Deprecated.XMLInputStream was deprecated by XMLStreamReader from STaX - jsr173 API.static XmlString
newValue(Object obj)
Creates an immutableXmlString
valuestatic XmlString
parse(File f)
Parses aXmlString
fragment from a File.static XmlString
parse(File f, XmlOptions options)
Parses aXmlString
fragment from a File.static XmlString
parse(InputStream is)
Parses aXmlString
fragment from an InputStream.static XmlString
parse(InputStream is, XmlOptions options)
Parses aXmlString
fragment from an InputStream.static XmlString
parse(Reader r)
Parses aXmlString
fragment from a Reader.static XmlString
parse(Reader r, XmlOptions options)
Parses aXmlString
fragment from a Reader.static XmlString
parse(String s)
Parses aXmlString
fragment from a String.static XmlString
parse(String s, XmlOptions options)
Parses aXmlString
fragment from a String.static XmlString
parse(URL u)
Parses aXmlString
fragment from a URL.static XmlString
parse(URL u, XmlOptions options)
Parses aXmlString
fragment from a URL.static XmlString
parse(XMLStreamReader xsr)
Parses aXmlString
fragment from an XMLStreamReader.static XmlString
parse(XMLStreamReader xsr, XmlOptions options)
Parses aXmlString
fragment from an XMLStreamReader.static XmlString
parse(XMLInputStream xis)
Deprecated.XMLInputStream was deprecated by XMLStreamReader from STaX - jsr173 API.static XmlString
parse(XMLInputStream xis, XmlOptions options)
Deprecated.XMLInputStream was deprecated by XMLStreamReader from STaX - jsr173 API.static XmlString
parse(Node node)
Parses aXmlString
fragment from a DOM Node.static XmlString
parse(Node node, XmlOptions options)
Parses aXmlString
fragment from a DOM Node.
-
-
-
Method Detail
-
newInstance
public static XmlString newInstance(XmlOptions options)
Creates an empty instance ofXmlString
-
parse
public static XmlString parse(String s) throws XmlException
Parses aXmlString
fragment from a String. For example: "<xml-fragment> arbitrary string </xml-fragment>
".- Throws:
XmlException
-
parse
public static XmlString parse(String s, XmlOptions options) throws XmlException
Parses aXmlString
fragment from a String. For example: "<xml-fragment> arbitrary string </xml-fragment>
".- Throws:
XmlException
-
parse
public static XmlString parse(File f) throws XmlException, IOException
Parses aXmlString
fragment from a File.- Throws:
XmlException
IOException
-
parse
public static XmlString parse(File f, XmlOptions options) throws XmlException, IOException
Parses aXmlString
fragment from a File.- Throws:
XmlException
IOException
-
parse
public static XmlString parse(URL u) throws XmlException, IOException
Parses aXmlString
fragment from a URL.- Throws:
XmlException
IOException
-
parse
public static XmlString parse(URL u, XmlOptions options) throws XmlException, IOException
Parses aXmlString
fragment from a URL.- Throws:
XmlException
IOException
-
parse
public static XmlString parse(InputStream is) throws XmlException, IOException
Parses aXmlString
fragment from an InputStream.- Throws:
XmlException
IOException
-
parse
public static XmlString parse(InputStream is, XmlOptions options) throws XmlException, IOException
Parses aXmlString
fragment from an InputStream.- Throws:
XmlException
IOException
-
parse
public static XmlString parse(Reader r) throws XmlException, IOException
Parses aXmlString
fragment from a Reader.- Throws:
XmlException
IOException
-
parse
public static XmlString parse(Reader r, XmlOptions options) throws XmlException, IOException
Parses aXmlString
fragment from a Reader.- Throws:
XmlException
IOException
-
parse
public static XmlString parse(Node node) throws XmlException
Parses aXmlString
fragment from a DOM Node.- Throws:
XmlException
-
parse
public static XmlString parse(Node node, XmlOptions options) throws XmlException
Parses aXmlString
fragment from a DOM Node.- Throws:
XmlException
-
parse
public static XmlString parse(XMLInputStream xis) throws XmlException, XMLStreamException
Deprecated.XMLInputStream was deprecated by XMLStreamReader from STaX - jsr173 API.Parses aXmlString
fragment from an XMLInputStream.- Throws:
XmlException
XMLStreamException
-
parse
public static XmlString parse(XMLInputStream xis, XmlOptions options) throws XmlException, XMLStreamException
Deprecated.XMLInputStream was deprecated by XMLStreamReader from STaX - jsr173 API.Parses aXmlString
fragment from an XMLInputStream.- Throws:
XmlException
XMLStreamException
-
parse
public static XmlString parse(XMLStreamReader xsr) throws XmlException
Parses aXmlString
fragment from an XMLStreamReader.- Throws:
XmlException
-
parse
public static XmlString parse(XMLStreamReader xsr, XmlOptions options) throws XmlException
Parses aXmlString
fragment from an XMLStreamReader.- Throws:
XmlException
-
newValidatingXMLInputStream
public static XMLInputStream newValidatingXMLInputStream(XMLInputStream xis) throws XmlException, XMLStreamException
Deprecated.XMLInputStream was deprecated by XMLStreamReader from STaX - jsr173 API.Returns a validating XMLInputStream.- Throws:
XmlException
XMLStreamException
-
newValidatingXMLInputStream
public static XMLInputStream newValidatingXMLInputStream(XMLInputStream xis, XmlOptions options) throws XmlException, XMLStreamException
Deprecated.XMLInputStream was deprecated by XMLStreamReader from STaX - jsr173 API.Returns a validating XMLInputStream.- Throws:
XmlException
XMLStreamException
-
-