diff --git a/source/org/thdl/tib/scanner/BinaryFileGenerator.java b/source/org/thdl/tib/scanner/BinaryFileGenerator.java index 97fd1bc..c147499 100644 --- a/source/org/thdl/tib/scanner/BinaryFileGenerator.java +++ b/source/org/thdl/tib/scanner/BinaryFileGenerator.java @@ -203,17 +203,6 @@ public class BinaryFileGenerator extends SimplifiedLinkedList { return sil; } - - private static String deleteQuotes(String s) - { - int length = s.length(); - if (length>2) - { - if ((s.charAt(0)=='\"') && (s.charAt(length-1)=='\"')) - return s.substring(1,length-1); - } - return s; - } public void addFile(String archivo, int delimiterType, String delimiter, int defNum) throws Exception { @@ -502,14 +491,14 @@ public class BinaryFileGenerator extends SimplifiedLinkedList } else { - s1 = deleteQuotes(entrada.substring(0,marker).trim()); - s2 = deleteQuotes(entrada.substring(marker+1).trim()); + s1 = Manipulate.deleteQuotes(entrada.substring(0,marker).trim()); + s2 = Manipulate.deleteQuotes(entrada.substring(marker+delimiter.length()).trim()); if (!s2.equals("")) { marker2 = s1.indexOf(';'); if (marker2>0) { - alternateWords = Manipulate.parseFields(s1, ';'); + alternateWords = s1.split(";"); for (marker2=0; marker2