Changeset 8821
- Timestamp:
- 2004-12-15T17:12:49+13:00 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/gems/GEMS.java
r8809 r8821 43 43 import java.io.PrintStream; 44 44 import java.io.FileInputStream; 45 import java.io.BufferedReader; 45 46 import java.io.FileOutputStream; 46 47 import java.io.DataInputStream; 47 48 import java.io.IOException; 49 import java.io.InputStreamReader; 50 import java.io.PrintWriter; 48 51 import java.util.*; 49 52 import javax.swing.*; … … 603 606 if(atLeastOneSetChanged == true) { 604 607 605 int result = JOptionPane.show OptionDialog(self, Dictionary.get("GEMS.Menu.Confirm_Exit_Save", Dictionary.get("GEMS.Element")), Dictionary.get("GEMS.Menu.Confirm_Exit_Save_Title"), JOptionPane.DEFAULT_OPTION, JOptionPane.QUESTION_MESSAGE, null, dialog_options, dialog_options[0]);608 int result = JOptionPane.showConfirmDialog(self, Dictionary.get("GEMS.Menu.Confirm_Exit_Save", Dictionary.get("GEMS.Element")), Dictionary.get("GEMS.Menu.Confirm_Exit_Save_Title"), JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE); //, null, dialog_options, dialog_options[0]); 606 609 607 610 // System.out.println("Exit: "+result); … … 2031 2034 try { 2032 2035 2033 FileInputStream fstream = new FileInputStream(items[1].trim()); 2034 DataInputStream in = new DataInputStream(fstream); 2036 FileInputStream fstream = new FileInputStream(items[1].trim()); 2037 BufferedReader in = new BufferedReader(new InputStreamReader(fstream, "UTF-8")); 2038 //DataInputStream in = new DataInputStream(fstream); 2035 2039 /////////////// 2036 2040 … … 2043 2047 2044 2048 //cycle through all lines in IN and print to OUT 2045 while(in.available() != 0){ 2049 //while(in.available() != 0){ 2050 while(in.ready()){ 2046 2051 2047 2052 //System.out.println(in.readLine()+ "\n" 2048 String nextline = in.readLine(); 2053 //String nextline = in.readLine(); 2054 String nextline = in.readLine(); 2049 2055 2050 2056 if(nextline.matches(".+namespace=\".+\".*") == true){
Note:
See TracChangeset
for help on using the changeset viewer.