247 */ 248 private void println(String outString) throws SAXException { 249 try { 250 bWriter.write( outString, 0, outString.length()); 251 bWriter.newLine(); 252 } catch (IOException ex) { 253 throw new SAXException(WRITE_ERROR, ex); 254 } 255 } 256 257 /** 258 * Close the writer if it's initiated. 259 * @throws IOException if any IO error when close buffered writer. 260 */ 261 @Override 262 public void close() throws IOException { 263 if (bWriter != null) 264 bWriter.close(); 265 } 266 } 267 268 | 247 */ 248 private void println(String outString) throws SAXException { 249 try { 250 bWriter.write( outString, 0, outString.length()); 251 bWriter.newLine(); 252 } catch (IOException ex) { 253 throw new SAXException(WRITE_ERROR, ex); 254 } 255 } 256 257 /** 258 * Close the writer if it's initiated. 259 * @throws IOException if any IO error when close buffered writer. 260 */ 261 @Override 262 public void close() throws IOException { 263 if (bWriter != null) 264 bWriter.close(); 265 } 266 } |