|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jtool.jxplatform.io.DetectCharset
Detects charset names of input files.
| Constructor Summary | |
DetectCharset()
|
|
| Method Summary | |
static java.lang.String |
getCharsetName(byte[] contents)
Guesses the charset name of a Japanese text. |
static java.lang.String |
getCharsetName(java.lang.String filename)
Guesses the charset name of a Japanese text. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DetectCharset()
| Method Detail |
public static java.lang.String getCharsetName(java.lang.String filename)
throws java.io.IOException
filename - The name of a file.
java.io.IOException - if an I/O error occurred.
public static java.lang.String getCharsetName(byte[] contents)
throws java.io.IOException
contents - The contents of a file.
java.io.IOException - if an I/O error occurred.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||