private byte nextByteInternal() throws LimitReachedException { if (ndx >= buffer.length) { this.fillBlock(); ndx = 0; } return buffer[ndx++]; }
public void init(Map attributes) { this.setup(attributes); ndx = 0; initialised = true; }
public byte nextByte() throws IllegalStateException, LimitReachedException { if (!initialised) { throw new IllegalStateException(); } return nextByteInternal(); }
public byte nextByte() throws IllegalStateException, LimitReachedException { if (!initialised) { throw new IllegalStateException(); } return nextByteInternal(); }
public byte nextByte() throws IllegalStateException, LimitReachedException { if (!initialised) { throw new IllegalStateException(); } return nextByteInternal(); }
public void init(Map attributes) { this.setup(attributes); ndx = 0; initialised = true; }
private byte nextByteInternal() throws LimitReachedException { if (ndx >= buffer.length) { this.fillBlock(); ndx = 0; } return buffer[ndx++]; }
public void nextBytes(byte[] out, int offset, int length) throws IllegalStateException, LimitReachedException { if (out == null) { return; } if (!initialised) { throw new IllegalStateException(); } if (offset < 0 || offset >= out.length || length < 1) { return; } int limit = ((offset+length) > out.length ? out.length-offset : length); for (int i = 0; i < limit; i++) { out[offset++] = nextByteInternal(); } }
public void init(Map attributes) { this.setup(attributes); ndx = 0; initialised = true; }
private byte nextByteInternal() throws LimitReachedException { if (ndx >= buffer.length) { this.fillBlock(); ndx = 0; } return buffer[ndx++]; }
public void nextBytes(byte[] out, int offset, int length) throws IllegalStateException, LimitReachedException { if (out == null) { return; } if (!initialised) { throw new IllegalStateException(); } if (offset < 0 || offset >= out.length || length < 1) { return; } int limit = ((offset+length) > out.length ? out.length-offset : length); for (int i = 0; i < limit; i++) { out[offset++] = nextByteInternal(); } }
public void nextBytes(byte[] out, int offset, int length) throws IllegalStateException, LimitReachedException { if (out == null) { return; } if (!initialised) { throw new IllegalStateException(); } if (offset < 0 || offset >= out.length || length < 1) { return; } int limit = ((offset+length) > out.length ? out.length-offset : length); for (int i = 0; i < limit; i++) { out[offset++] = nextByteInternal(); } }