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