/** * Reads the current element and returns an LDAPMessage. * @return LDAPMessage found in the DSML DOM structure specified in the * constructor. */ public LDAPMessage readMessage() { if (this.messageIndex >= handler.getQueue().size()) return null; return (LDAPMessage) handler.getQueue().get( this.messageIndex ++ ); }
/** * Retrieves the current LDAPMessage and advances to the next. * * <p>This method is used to iterate over all DSML tags parsed into * LDAPMessages<p> * @return LDAPMessage found in the DSML source specified in the * constructor. */ public LDAPMessage readMessage() { if (this.messageIndex >= handler.getQueue().size()) return null; return (LDAPMessage) handler.getQueue().get( this.messageIndex ++ ); }