/** * @see java.io.InputStream.read(byte[]) */ public int read(byte[] b) throws IOException { return (read(b, 0, b.length)); }
/** * @see java.io.InputStream#read() */ public int read() throws IOException { if (oneByteBuffer == null) oneByteBuffer = new byte[1]; return((read(oneByteBuffer, 0, 1) == -1) ? -1 : (int) oneByteBuffer[0]); }