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 XmlStringnewInstance()Creates an empty instance ofXmlStringstatic XmlStringnewInstance(XmlOptions options)Creates an empty instance ofXmlStringstatic XMLInputStreamnewValidatingXMLInputStream(XMLInputStream xis)Deprecated.XMLInputStream was deprecated by XMLStreamReader from STaX - jsr173 API.static XMLInputStreamnewValidatingXMLInputStream(XMLInputStream xis, XmlOptions options)Deprecated.XMLInputStream was deprecated by XMLStreamReader from STaX - jsr173 API.static XmlStringnewValue(Object obj)Creates an immutableXmlStringvaluestatic XmlStringparse(File f)Parses aXmlStringfragment from a File.static XmlStringparse(File f, XmlOptions options)Parses aXmlStringfragment from a File.static XmlStringparse(InputStream is)Parses aXmlStringfragment from an InputStream.static XmlStringparse(InputStream is, XmlOptions options)Parses aXmlStringfragment from an InputStream.static XmlStringparse(Reader r)Parses aXmlStringfragment from a Reader.static XmlStringparse(Reader r, XmlOptions options)Parses aXmlStringfragment from a Reader.static XmlStringparse(String s)Parses aXmlStringfragment from a String.static XmlStringparse(String s, XmlOptions options)Parses aXmlStringfragment from a String.static XmlStringparse(URL u)Parses aXmlStringfragment from a URL.static XmlStringparse(URL u, XmlOptions options)Parses aXmlStringfragment from a URL.static XmlStringparse(XMLStreamReader xsr)Parses aXmlStringfragment from an XMLStreamReader.static XmlStringparse(XMLStreamReader xsr, XmlOptions options)Parses aXmlStringfragment from an XMLStreamReader.static XmlStringparse(XMLInputStream xis)Deprecated.XMLInputStream was deprecated by XMLStreamReader from STaX - jsr173 API.static XmlStringparse(XMLInputStream xis, XmlOptions options)Deprecated.XMLInputStream was deprecated by XMLStreamReader from STaX - jsr173 API.static XmlStringparse(Node node)Parses aXmlStringfragment from a DOM Node.static XmlStringparse(Node node, XmlOptions options)Parses aXmlStringfragment 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 aXmlStringfragment 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 aXmlStringfragment from a String. For example: "<xml-fragment> arbitrary string </xml-fragment>".- Throws:
XmlException
-
parse
public static XmlString parse(File f) throws XmlException, IOException
Parses aXmlStringfragment from a File.- Throws:
XmlExceptionIOException
-
parse
public static XmlString parse(File f, XmlOptions options) throws XmlException, IOException
Parses aXmlStringfragment from a File.- Throws:
XmlExceptionIOException
-
parse
public static XmlString parse(URL u) throws XmlException, IOException
Parses aXmlStringfragment from a URL.- Throws:
XmlExceptionIOException
-
parse
public static XmlString parse(URL u, XmlOptions options) throws XmlException, IOException
Parses aXmlStringfragment from a URL.- Throws:
XmlExceptionIOException
-
parse
public static XmlString parse(InputStream is) throws XmlException, IOException
Parses aXmlStringfragment from an InputStream.- Throws:
XmlExceptionIOException
-
parse
public static XmlString parse(InputStream is, XmlOptions options) throws XmlException, IOException
Parses aXmlStringfragment from an InputStream.- Throws:
XmlExceptionIOException
-
parse
public static XmlString parse(Reader r) throws XmlException, IOException
Parses aXmlStringfragment from a Reader.- Throws:
XmlExceptionIOException
-
parse
public static XmlString parse(Reader r, XmlOptions options) throws XmlException, IOException
Parses aXmlStringfragment from a Reader.- Throws:
XmlExceptionIOException
-
parse
public static XmlString parse(Node node) throws XmlException
Parses aXmlStringfragment from a DOM Node.- Throws:
XmlException
-
parse
public static XmlString parse(Node node, XmlOptions options) throws XmlException
Parses aXmlStringfragment 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 aXmlStringfragment from an XMLInputStream.- Throws:
XmlExceptionXMLStreamException
-
parse
public static XmlString parse(XMLInputStream xis, XmlOptions options) throws XmlException, XMLStreamException
Deprecated.XMLInputStream was deprecated by XMLStreamReader from STaX - jsr173 API.Parses aXmlStringfragment from an XMLInputStream.- Throws:
XmlExceptionXMLStreamException
-
parse
public static XmlString parse(XMLStreamReader xsr) throws XmlException
Parses aXmlStringfragment from an XMLStreamReader.- Throws:
XmlException
-
parse
public static XmlString parse(XMLStreamReader xsr, XmlOptions options) throws XmlException
Parses aXmlStringfragment 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:
XmlExceptionXMLStreamException
-
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:
XmlExceptionXMLStreamException
-
-