net.sf.banglapad
Class Detect
java.lang.Object
net.sf.banglapad.Detect
public class Detect
- extends java.lang.Object
Method Summary |
static boolean |
isEncryptedFile(byte[] the_text,
int number)
|
static boolean |
isEUCJP(java.lang.String the_text)
|
static boolean |
isRTF(byte[] buffer,
int number_read)
|
static boolean |
isSJIS(java.lang.String the_text)
|
static boolean |
isUTF8(byte[] the_text)
|
static FileInformation |
whatIsIt(java.io.File file_to_test)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MAX
public static final int MAX
- See Also:
- Constant Field Values
ENCRYPTION_MARKER
public static final byte[] ENCRYPTION_MARKER
Detect
public Detect()
whatIsIt
public static FileInformation whatIsIt(java.io.File file_to_test)
isUTF8
public static boolean isUTF8(byte[] the_text)
isEncryptedFile
public static boolean isEncryptedFile(byte[] the_text,
int number)
isRTF
public static boolean isRTF(byte[] buffer,
int number_read)
isSJIS
public static boolean isSJIS(java.lang.String the_text)
isEUCJP
public static boolean isEUCJP(java.lang.String the_text)