net.sf.banglapad
Class Detect

java.lang.Object
  extended by net.sf.banglapad.Detect

public class Detect
extends java.lang.Object


Field Summary
static byte[] ENCRYPTION_MARKER
           
static int MAX
           
 
Constructor Summary
Detect()
           
 
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
 

Field Detail

MAX

public static final int MAX
See Also:
Constant Field Values

ENCRYPTION_MARKER

public static final byte[] ENCRYPTION_MARKER
Constructor Detail

Detect

public Detect()
Method Detail

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)