public void endDocument() throws SAXException {
  write('\n');
  super.endDocument();
  try {
    flush();
  }
 catch (  IOException e) {
    throw new SAXException(e);
  }
}

public void endDocument ( ) throws SAXException { write ( '\n' ) ; super . endDocument ( ) ; try { flush ( ) ; } catch ( IOException e ) { throw new SAXException ( e ) ; } }
write a newline at the end of the document . < p / > pass the event on down the filter chain for further processing .
