}
}
- /*
- private static void addArrayToList(ArrayList<String> list,String array[]){
- for(int i=0;i<array.length;i++){
- list.add(array[i]);
- }
- }
- private static String escape(String str){
- byte[] buff = null;
- try {
- buff = str.getBytes("Shift_JIS");
- } catch (UnsupportedEncodingException e) {
- e.printStackTrace();
- }
- int cnt = 0;
- for(int i=0;i<buff.length;i++){
- if(buff[i] == '\\' || buff[i] == '{' || buff[i] == '}'){
- cnt++;
- }
- cnt++;
- }
- byte[] obuff = new byte[cnt];
- cnt = 0;
- for(int i=0;i<buff.length;i++){
- if(buff[i] == '\\' || buff[i] == '{' || buff[i] == '}'){
- obuff[cnt] = '\\';
- cnt++;
- }
- obuff[cnt] = buff[i];
- cnt++;
- }
- try {
- String out = new String(obuff,"Shift_JIS");
- return out;
- } catch (UnsupportedEncodingException e) {
- e.printStackTrace();
- }
- return "";
- }
- */
public boolean isConverted() {
return StopFlag.isConverted();
}