Package org.apache.xmlbeans
Class XmlByte.Factory
- java.lang.Object
-
- org.apache.xmlbeans.XmlByte.Factory
-
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static XmlBytenewInstance()Creates an empty instance ofXmlBytestatic XmlBytenewInstance(XmlOptions options)Creates an empty instance ofXmlBytestatic 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 XmlBytenewValue(Object obj)Creates an immutableXmlBytevaluestatic XmlByteparse(File f)Parses aXmlBytefragment from a File.static XmlByteparse(File f, XmlOptions options)Parses aXmlBytefragment from a File.static XmlByteparse(InputStream is)Parses aXmlBytefragment from an InputStream.static XmlByteparse(InputStream is, XmlOptions options)Parses aXmlBytefragment from an InputStream.static XmlByteparse(Reader r)Parses aXmlBytefragment from a Reader.static XmlByteparse(Reader r, XmlOptions options)Parses aXmlBytefragment from a Reader.static XmlByteparse(String s)Parses aXmlBytefragment from a String.static XmlByteparse(String s, XmlOptions options)Parses aXmlBytefragment from a String.static XmlByteparse(URL u)Parses aXmlBytefragment from a URL.static XmlByteparse(URL u, XmlOptions options)Parses aXmlBytefragment from a URL.static XmlByteparse(XMLStreamReader xsr)Parses aXmlBytefragment from an XMLStreamReader.static XmlByteparse(XMLStreamReader xsr, XmlOptions options)Parses aXmlBytefragment from an XMLStreamReader.static XmlByteparse(XMLInputStream xis)Deprecated.XMLInputStream was deprecated by XMLStreamReader from STaX - jsr173 API.static XmlByteparse(XMLInputStream xis, XmlOptions options)Deprecated.XMLInputStream was deprecated by XMLStreamReader from STaX - jsr173 API.static XmlByteparse(Node node)Parses aXmlBytefragment from a DOM Node.static XmlByteparse(Node node, XmlOptions options)Parses aXmlBytefragment from a DOM Node.
-
-
-
Method Detail
-
newInstance
public static XmlByte newInstance(XmlOptions options)
Creates an empty instance ofXmlByte
-
parse
public static XmlByte parse(String s) throws XmlException
Parses aXmlBytefragment from a String. For example: "<xml-fragment>123</xml-fragment>".- Throws:
XmlException
-
parse
public static XmlByte parse(String s, XmlOptions options) throws XmlException
Parses aXmlBytefragment from a String. For example: "<xml-fragment>123</xml-fragment>".- Throws:
XmlException
-
parse
public static XmlByte parse(File f) throws XmlException, IOException
Parses aXmlBytefragment from a File.- Throws:
XmlExceptionIOException
-
parse
public static XmlByte parse(File f, XmlOptions options) throws XmlException, IOException
Parses aXmlBytefragment from a File.- Throws:
XmlExceptionIOException
-
parse
public static XmlByte parse(URL u) throws XmlException, IOException
Parses aXmlBytefragment from a URL.- Throws:
XmlExceptionIOException
-
parse
public static XmlByte parse(URL u, XmlOptions options) throws XmlException, IOException
Parses aXmlBytefragment from a URL.- Throws:
XmlExceptionIOException
-
parse
public static XmlByte parse(InputStream is) throws XmlException, IOException
Parses aXmlBytefragment from an InputStream.- Throws:
XmlExceptionIOException
-
parse
public static XmlByte parse(InputStream is, XmlOptions options) throws XmlException, IOException
Parses aXmlBytefragment from an InputStream.- Throws:
XmlExceptionIOException
-
parse
public static XmlByte parse(Reader r) throws XmlException, IOException
Parses aXmlBytefragment from a Reader.- Throws:
XmlExceptionIOException
-
parse
public static XmlByte parse(Reader r, XmlOptions options) throws XmlException, IOException
Parses aXmlBytefragment from a Reader.- Throws:
XmlExceptionIOException
-
parse
public static XmlByte parse(Node node) throws XmlException
Parses aXmlBytefragment from a DOM Node.- Throws:
XmlException
-
parse
public static XmlByte parse(Node node, XmlOptions options) throws XmlException
Parses aXmlBytefragment from a DOM Node.- Throws:
XmlException
-
parse
public static XmlByte parse(XMLInputStream xis) throws XmlException, XMLStreamException
Deprecated.XMLInputStream was deprecated by XMLStreamReader from STaX - jsr173 API.Parses aXmlBytefragment from an XMLInputStream.- Throws:
XmlExceptionXMLStreamException
-
parse
public static XmlByte parse(XMLInputStream xis, XmlOptions options) throws XmlException, XMLStreamException
Deprecated.XMLInputStream was deprecated by XMLStreamReader from STaX - jsr173 API.Parses aXmlBytefragment from an XMLInputStream.- Throws:
XmlExceptionXMLStreamException
-
parse
public static XmlByte parse(XMLStreamReader xsr) throws XmlException
Parses aXmlBytefragment from an XMLStreamReader.- Throws:
XmlException
-
parse
public static XmlByte parse(XMLStreamReader xsr, XmlOptions options) throws XmlException
Parses aXmlBytefragment 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
-
-