public class XMLEncodingParser extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
getEncoding(File file)
Return the declared encoding of a file.
|
static String |
getEncoding(InputStream stream)
Return the declared encoding of an input stream.
|
static String |
getEncoding(URL url)
Return the declared encoding of an URL.
|
public static String getEncoding(File file)
file - the filepublic static String getEncoding(URL url)
url - the URLpublic static String getEncoding(InputStream stream)
stream - the input stream