cn.com.cjf.ChineseJF Maven / Gradle / Ivy
package cn.com.cjf;
import java.io.File;
import java.io.IOException;
/**
* ?ӿڣ?????????ת???ɷ??????ģ?????????ת???ɼ??????ĵĹ?????ӿ?
* @author saiya [email protected]
* @lastEdit 2008-10-28
*/
public interface ChineseJF {
/**
* ????-???? ?ļ?ת????ʱ?? һ?λ???Ĵ?С????λ[char]
*/
public static final int cashSize=2000;
/**
* ?Ƿ?ʼ?????????ַ?ӳ???ļ?????true ??ʾ?Ѿ???ʼ????
* @return
*/
public boolean initialized();
/**
* ??ʼ??????[?????ַ?ӳ???ļ?]???ڴ?
*/
public void init();
/**
* ?ͷż??ص??ڴ???ַ?ӳ??
*/
public void free();
/**
* ?Ѽ????ַ??? ת???ɷ????ַ???
* @param janText ?????ַ???
* @return
*/
public String chineseJan2Fan(String janText);
/**
* ?ѷ????ַ??? ת???? ?????ַ???
* @param fanText ?????ַ???
* @return
*/
public String chineseFan2Jan(String fanText);
/**
* ?????????ļ? ת???? ?????????ļ?
* @param sourceFile Դ?ļ? ?? ?????????ļ?
* @param sourceCharSet Դ?ļ??ַ???
* @param targetFile Ŀ???ļ? ?????深?????Ľ?????ļ???????ļ??Ѿ????ڣ???????ԭ??????д?롿
* @param targetCharSet Ŀ???ļ??ַ???
* @return ת??????ʱ?䣬??λ ms
* @throws IOException
*/
public long chineseJan2Fan(File sourceFile , String sourceCharSet , File targetFile , String targetCharSet)throws IOException;
/**
* ?????????ļ? ת???? ?????????ļ?
* @param sourceFile Դ?ļ? ???????????ļ?
* @param sourceCharSet Դ?ļ??ַ???
* @param targetFile Ŀ???ļ? ????????????Ľ?????ļ???????ļ??Ѿ????ڣ???????ԭ??????д?롿
* @param targetCharSet Ŀ???ļ??ַ???
* @return ת??????ʱ?䣬??λ ms
* @throws IOException
*/
public long chineseFan2Jan(File sourceFile , String sourceCharSet , File targetFile , String targetCharSet)throws IOException;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy