@ Override public void shutdown ( ) throws JournalException { try { if ( fileHasHeader ) { super . writeDocumentTrailer ( writer ) ; } writer . close ( ) ; out . close ( ) ; } catch ( XMLStreamException e ) { throw new JournalException ( e ) ; } catch ( IOException e ) { throw new JournalException ( e ) ; } }
Add the document trailer and close the journal file .