public int next() throws NoSuchElementException { return table[iter.next()] & 0xff; }
public int next() { return iter.next(); }
public int next() throws NoSuchElementException { return table[iter.next()] & 0xff; }
public int next() { if (offset == size) { throw new NoSuchElementException(); } offset++; return iter.next(); }
public int next() { if (! hasNext()) throw new NoSuchElementException(); offset++; return iter.next(); }
public int next() throws NoSuchElementException { final int seek = seekNext(); if (seek == -1) throw new NoSuchElementException(); final int next = iterators[seek].next(); index++; return next; }
/** * Drain all the remaining bytes in this iterator to the given stream. * * @param stream the stream * @return the same stream */ public ByteArrayOutputStream drainTo(ByteArrayOutputStream stream) { while (hasNext()) { stream.write(next()); } return stream; }
public int read() throws IOException { return iter.hasNext() ? iter.next() : - 1; }
private void skipDelimiter(ByteIterator bi) throws SaslException { if (bi.next() != ',') { throw saslGs2.mechInvalidMessageReceived().toSaslException(); } }
public int next() throws NoSuchElementException { if (! hasNext()) throw new NoSuchElementException(); if (lo) { lo = false; return hex(b & 0xf); } else { b = iter.next(); lo = true; return hex(b >> 4); } }
@Override public void skipElement() throws ASN1Exception { readTag(); int length = readLength(); int i; for (i = 0; i < length && bi.hasNext(); i++) { bi.next(); } if (i != length) { throw log.asnUnexpectedEndOfInput(); } }
@Override public boolean decodeBoolean() throws ASN1Exception { readTag(BOOLEAN_TYPE); int length = readLength(); if (length != 1) { throw log.asnInvalidLengthForBooleanTypeTag(); } if (! bi.hasNext()) { throw log.asnUnexpectedEndOfInput(); } return bi.next() != BOOLEAN_FALSE; }