public class XMLEncodingUtils
extends java.lang.Object
| Constructor and Description |
|---|
XMLEncodingUtils(java.io.InputStream is)
Creates a new XMLEncodingUtils object.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getEncoding()
Gets the encoding of the XML file.
|
static java.lang.String |
getEncoding(java.io.File file)
Gets the character encoding of the XML file.
|
static java.lang.String |
getEncoding(java.io.InputStream is)
Gets the character encoding of the XML file.
|
java.io.InputStreamReader |
getReader()
Gets an InputStreamReader for the provided XML file.
|
static java.io.InputStreamReader |
getReader(java.io.File file)
Gets an InputStreamReader for the provided XML file.
|
static java.io.InputStreamReader |
getReader(java.io.InputStream is)
Gets an InputStreamReader for the provided XML file.
|
public XMLEncodingUtils(java.io.InputStream is)
is - An InputStream connected to the XML file to process.public java.lang.String getEncoding()
public java.io.InputStreamReader getReader()
public static java.io.InputStreamReader getReader(java.io.InputStream is)
is - An InputStream connected to the XML file to processgetReader()public static java.lang.String getEncoding(java.io.InputStream is)
is - An InputStream connected to the XML file to processgetEncoding()public static java.io.InputStreamReader getReader(java.io.File file)
throws java.io.FileNotFoundException
file - The XML file to processjava.io.FileNotFoundExceptiongetReader()public static java.lang.String getEncoding(java.io.File file)
throws java.io.FileNotFoundException
File - The XML file to processjava.io.FileNotFoundExceptiongetEncoding()