/** * Reads a byte from the stream, saving it in the store if it is being * read from the original stream. Implements the abstract * InputStream.read(). * * @return the read byte, or -1 on end of stream. * @throws IOException */ public int read() throws IOException { int inputByte = inputStream.read(); if (firstPass) { saveByte(inputByte); } return inputByte; }
/** * Reads a byte from the stream, saving it in the store if it is being * read from the original stream. Implements the abstract * InputStream.read(). * * @return the read byte, or -1 on end of stream. * @throws IOException */ public int read() throws IOException { int inputByte = inputStream.read(); if (firstPass) { saveByte(inputByte); } return inputByte; }
/** * Reads a byte from the stream, saving it in the store if it is being * read from the original stream. Implements the abstract * InputStream.read(). * * @return the read byte, or -1 on end of stream. * @throws IOException */ public int read() throws IOException { int inputByte = inputStream.read(); if (firstPass) { saveByte(inputByte); } return inputByte; }