XmlProviders Class
- java.
lang. Object - com.
azure. xml. XmlProviders
- com.
public final class XmlProviders
Handles loading an instance of XmlProvider found on the classpath.
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Xml |
createReader(byte[] xml)
Creates an instance of XmlReader that reads a |
|
static
Xml |
createReader(byte[] xml, boolean useDefault)
Creates an instance of XmlReader that reads a |
|
static
Xml |
createReader(InputStream xml)
Creates an instance of XmlReader that reads a InputStream. |
|
static
Xml |
createReader(InputStream xml, boolean useDefault)
Creates an instance of XmlReader that reads a InputStream. |
|
static
Xml |
createReader(Reader xml)
Creates an instance of XmlReader that reads a Reader. |
|
static
Xml |
createReader(Reader xml, boolean useDefault)
Creates an instance of XmlReader that reads a Reader. |
|
static
Xml |
createReader(String xml)
Creates an instance of XmlReader that reads a String. |
|
static
Xml |
createReader(String xml, boolean useDefault)
Creates an instance of XmlReader that reads a String. |
|
static
Xml |
createWriter(OutputStream xml)
Creates an instance of XmlWriter that writes to an OutputStream. |
|
static
Xml |
createWriter(OutputStream xml, boolean useDefault)
Creates an instance of XmlWriter that writes to an OutputStream. |
|
static
Xml |
createWriter(Writer xml)
Creates an instance of XmlWriter that writes to an Writer. |
|
static
Xml |
createWriter(Writer xml, boolean useDefault)
Creates an instance of XmlWriter that writes to an Writer. |
Methods inherited from java.lang.Object
Method Details
createReader
public static XmlReader createReader(byte[] xml)
Creates an instance of XmlReader that reads a byte[].
If a provider could not be found on the classpath this will use the default implementation, effectively the equivalent to createReader(byte[] xml, boolean useDefault).
Parameters:
byte[].
Returns:
Throws:
xml is null.
createReader
public static XmlReader createReader(byte[] xml, boolean useDefault)
Creates an instance of XmlReader that reads a byte[].
Parameters:
byte[].
Returns:
Throws:
xml is null.
createReader
public static XmlReader createReader(InputStream xml)
Creates an instance of XmlReader that reads a InputStream.
If a provider could not be found on the classpath this will use the default implementation, effectively the equivalent to createReader(InputStream xml, boolean useDefault).
Parameters:
Returns:
Throws:
xml is null.
createReader
public static XmlReader createReader(InputStream xml, boolean useDefault)
Creates an instance of XmlReader that reads a InputStream.
Parameters:
Returns:
Throws:
xml is null.
createReader
public static XmlReader createReader(Reader xml)
Creates an instance of XmlReader that reads a Reader.
If a provider could not be found on the classpath this will use the default implementation, effectively the equivalent to createReader(Reader xml, boolean useDefault).
Parameters:
Returns:
Throws:
xml is null.
createReader
public static XmlReader createReader(Reader xml, boolean useDefault)
Creates an instance of XmlReader that reads a Reader.
Parameters:
Returns:
Throws:
xml is null.
createReader
public static XmlReader createReader(String xml)
Creates an instance of XmlReader that reads a String.
If a provider could not be found on the classpath this will use the default implementation, effectively the equivalent to createReader(String xml, boolean useDefault).
Parameters:
Returns:
Throws:
xml is null.
createReader
public static XmlReader createReader(String xml, boolean useDefault)
Creates an instance of XmlReader that reads a String.
Parameters:
Returns:
Throws:
xml is null.
createWriter
public static XmlWriter createWriter(OutputStream xml)
Creates an instance of XmlWriter that writes to an OutputStream.
If a provider could not be found on the classpath this will use the default implementation, effectively the equivalent to createWriter(OutputStream xml, boolean useDefault).
Parameters:
Returns:
Throws:
xml is null.
createWriter
public static XmlWriter createWriter(OutputStream xml, boolean useDefault)
Creates an instance of XmlWriter that writes to an OutputStream.
Parameters:
Returns:
Throws:
xml is null.
createWriter
public static XmlWriter createWriter(Writer xml)
Creates an instance of XmlWriter that writes to an Writer.
If a provider could not be found on the classpath this will use the default implementation, effectively the equivalent to createWriter(Writer xml, boolean useDefault).
Parameters:
Returns:
Throws:
xml is null.
createWriter
public static XmlWriter createWriter(Writer xml, boolean useDefault)
Creates an instance of XmlWriter that writes to an Writer.
Parameters:
Returns:
Throws:
xml is null.