@Override public int read() throws IOException { if (remaining() > 0) return (array[readAndIncrement(1)] & 0xFF); return -1; }
undoWrite(size); return false;
blockedDecryptingInputStream = new BlockedInputStream(blockedDecryptingInputStream, cipher.getBlockSize(), params.getBlockStreamSize());
@Override public int read(byte b[], int off, int len) throws IOException { int toCopy = Math.min(len, remaining()); if (toCopy > 0) { System.arraycopy(array, readPos, b, off, toCopy); readAndIncrement(toCopy); } return toCopy; }