/** * Hex-decode the current stream. * * @return an iterator over the decoded bytes */ public ByteIterator hexDecode() { if (! hasNext()) return ByteIterator.EMPTY; return new Base16DecodingByteIterator(this); }
public int previous() throws NoSuchElementException { if (! hasPrevious()) { throw new NoSuchElementException(); } int b1 = iter.previous(); int b0 = iter.previous(); b = calc(b0, b1); offset--; havePair = true; return b; }
public int next() throws NoSuchElementException { if (! hasNext()) { throw new NoSuchElementException(); } offset++; havePair = false; return b; }
public boolean hasNext() { if (havePair) { return true; } if (! iter.hasNext()) { return false; } int b0 = iter.next(); if (! iter.hasNext()) { throw msg.expectedEvenNumberOfHexCharacters(); } int b1 = iter.next(); b = calc(b0, b1); havePair = true; return true; }
public boolean hasNext() { if (havePair) { return true; } if (! iter.hasNext()) { return false; } int b0 = iter.next(); if (! iter.hasNext()) { throw msg.expectedEvenNumberOfHexCharacters(); } int b1 = iter.next(); b = calc(b0, b1); havePair = true; return true; }
public int peekPrevious() throws NoSuchElementException { if (! hasPrevious()) { throw new NoSuchElementException(); } int b1 = iter.previous(); int b0 = iter.peekPrevious(); iter.next(); return calc(b0, b1); }
public int peekNext() throws NoSuchElementException { if (! hasNext()) { throw new NoSuchElementException(); } return b; }
/** * Hex-decode the current stream. * * @return an iterator over the decoded bytes */ public ByteIterator hexDecode() { if (! hasNext()) return ByteIterator.EMPTY; return new Base16DecodingByteIterator(this); }
public boolean hasNext() { if (havePair) { return true; } if (! iter.hasNext()) { return false; } int b0 = iter.next(); if (! iter.hasNext()) { throw msg.expectedEvenNumberOfHexCharacters(); } int b1 = iter.next(); b = calc(b0, b1); havePair = true; return true; }
public int previous() throws NoSuchElementException { if (! hasPrevious()) { throw new NoSuchElementException(); } int b1 = iter.previous(); int b0 = iter.previous(); b = calc(b0, b1); offset--; havePair = true; return b; }
public int next() throws NoSuchElementException { if (! hasNext()) { throw new NoSuchElementException(); } offset++; havePair = false; return b; }
/** * Hex-decode the current stream. * * @return an iterator over the decoded bytes */ public ByteIterator hexDecode() { if (! hasNext()) return ByteIterator.EMPTY; return new Base16DecodingByteIterator(this); }
public int previous() throws NoSuchElementException { if (! hasPrevious()) { throw new NoSuchElementException(); } int b1 = iter.previous(); int b0 = iter.previous(); b = calc(b0, b1); offset--; havePair = true; return b; }
public int next() throws NoSuchElementException { if (! hasNext()) { throw new NoSuchElementException(); } offset++; havePair = false; return b; }
public int peekPrevious() throws NoSuchElementException { if (! hasPrevious()) { throw new NoSuchElementException(); } int b1 = iter.previous(); int b0 = iter.peekPrevious(); iter.next(); return calc(b0, b1); }
public int peekNext() throws NoSuchElementException { if (! hasNext()) { throw new NoSuchElementException(); } return b; }
public int peekPrevious() throws NoSuchElementException { if (! hasPrevious()) { throw new NoSuchElementException(); } int b1 = iter.previous(); int b0 = iter.peekPrevious(); iter.next(); return calc(b0, b1); }
public int peekNext() throws NoSuchElementException { if (! hasNext()) { throw new NoSuchElementException(); } return b; }