java/xmlreader/src/main/java/be/bosa/dt/best/xmlreader/AbstractXMLReader.java
/**
	 * Check if there is a next object
	 * 
	 * @param reader XML reader
	 * @return true if there is a next object
	 * @throws XMLStreamException 
	 */
Check if there is a next object

@param reader XML reader
@return true if there is a next object
@throws XMLStreamException
Check if there is a next object @param reader XML reader @return true if there is a next object @throws XMLStreamException
protected boolean hasNextObj(XMLEventReader reader) throws XMLStreamException {
		for(;;) {
			XMLEvent peek = reader.peek();
			int type = peek.getEventType();
			if (type == XMLEvent.START_ELEMENT) {
				return true;
			}
			if (type == XMLEvent.END_DOCUMENT) {
				return false;
			}
			reader.nextEvent();
		}
	}
protected boolean hasNextObj ( XMLEventReader reader ) throws XMLStreamException { for ( ; ; ) { XMLEvent peek = reader . peek ( ) ; int type = peek . getEventType ( ) ; if ( type == XMLEvent . START_ELEMENT ) { return true ; } if ( type == XMLEvent . END_DOCUMENT ) { return false ; } reader . nextEvent ( ) ; } }
Check if there is a next object
Check if there is a next object