private void endDocument(final boolean multiObjectMode) throws SAXException {
  if (depth == 0 || depth == 1 && multiObjectMode) {
    contentHandler.endDocument();
    depth=0;
  }
}

private void endDocument ( final boolean multiObjectMode ) throws SAXException { if ( depth == 0 || depth == 1 && multiObjectMode ) { contentHandler . endDocument ( ) ; depth = 0 ; } }
fires the sax enddocument event towards the configured contenthandler .
