255 */ 256 @Override 257 public void startPrefixMapping(String prefix, String uri) throws SAXException { 258 println("startPrefixMapping...\n" + "prefix: " + prefix + " uri: " + uri); 259 } 260 261 /** 262 * Write outString to file. 263 * @param outString String to be written to File 264 * @throws SAXException if write file failed 265 */ 266 private void println(String outString) throws SAXException { 267 try { 268 bWriter.write( outString, 0, outString.length()); 269 bWriter.newLine(); 270 } catch (IOException ex) { 271 throw new SAXException(WRITE_ERROR, ex); 272 } 273 } 274 } 275 276 | 255 */ 256 @Override 257 public void startPrefixMapping(String prefix, String uri) throws SAXException { 258 println("startPrefixMapping...\n" + "prefix: " + prefix + " uri: " + uri); 259 } 260 261 /** 262 * Write outString to file. 263 * @param outString String to be written to File 264 * @throws SAXException if write file failed 265 */ 266 private void println(String outString) throws SAXException { 267 try { 268 bWriter.write( outString, 0, outString.length()); 269 bWriter.newLine(); 270 } catch (IOException ex) { 271 throw new SAXException(WRITE_ERROR, ex); 272 } 273 } 274 } |