Changeset 20944 for gsdl/trunk/build-src/src/java
- Timestamp:
- 2009-11-16T13:09:40+13:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gsdl/trunk/build-src/src/java/org/nzdl/gsdl/ApplyXSLT.java
r20882 r20944 58 58 59 59 int system_status = BEFORE_READING; 60 String a_doc = new String();60 StringBuffer a_doc = new StringBuffer(); 61 61 String output_file = new String(); 62 62 … … 69 69 output_file = br.readLine(); // read the next line as the output file name 70 70 system_status = IS_READING; 71 a_doc = "";71 a_doc = new StringBuffer(); 72 72 } 73 73 else if(this_line.compareTo(INPUT_END) == 0){ … … 84 84 boolean result = false; 85 85 if (mapping_file !=null && !mapping_file.equals("")){ 86 result = translateXMLWithMapping(a_doc,output_file);86 result = translateXMLWithMapping(a_doc.toString(), output_file); 87 87 } 88 88 else{ 89 result = translateXML(a_doc,output_file);89 result = translateXML(a_doc.toString(), output_file); 90 90 } 91 91 … … 99 99 } 100 100 else{ 101 a_doc = a_doc + this_line + "\n"; 102 101 a_doc.append(this_line + "\n"); 103 102 } 104 103 }
Note:
See TracChangeset
for help on using the changeset viewer.