Changeset 4450
- Timestamp:
- 2003-06-03T12:39:36+12:00 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/util/Utility.java
r4439 r4450 128 128 /** The default name of the perl executable under windows. */ 129 129 static final public String PERL_EXECUTABLE_WINDOWS = "Perl.exe"; 130 /** The default profile file */ 131 static final public String PROFILE_TEMPLATE = "xml/protemp.xml"; 130 132 /** The name of the Gatherer. */ 131 133 static final public String PROGRAM_NAME = "The Librarian Interface"; … … 273 275 try { 274 276 OutputStream os = new FileOutputStream(file); 275 277 // Create an output format for our document. 276 278 OutputFormat f = new OutputFormat(document); 277 279 f.setIndenting(true); 278 280 f.setLineWidth(256); 279 281 f.setPreserveSpace(false); 280 282 // Create the necessary writer stream for serialization. 281 283 OutputStreamWriter osw = new OutputStreamWriter(os); 282 284 Writer w = new BufferedWriter(osw); 283 285 // Generate a new serializer from the above. 284 286 XMLSerializer s = new XMLSerializer(w, f); 285 287 s.asDOMSerializer(); 286 288 // Finally serialize the document to file. 287 289 s.serialize(document); 288 290 // And close. 289 291 os.close(); 290 292 return true;
Note:
See TracChangeset
for help on using the changeset viewer.