private void readArguments ( XMLEventReader reader , ConsumerJournalEntry cje ) throws XMLStreamException , JournalException { while ( true ) { XMLEvent nextTag = reader . nextTag ( ) ; if ( isStartTagEvent ( nextTag , QNAME_TAG_ARGUMENT ) ) { readArgument ( nextTag , reader , cje ) ; } else if ( isEndTagEvent ( nextTag , QNAME_TAG_JOURNAL_ENTRY ) ) { return ; } else { throw getNotNextMemberOrEndOfGroupException ( QNAME_TAG_JOURNAL_ENTRY , QNAME_TAG_ARGUMENT , nextTag ) ; } } }
Read arguments and add them to the event until we hit the end tag for the event .