@Override public int read(byte[] bytes, int ofs, int len) throws IOException { int result; result = super.read(bytes, ofs, len); if (result != -1) { logger.log(bytes, ofs, result); } return result; }
@Override public int read(byte[] bytes) throws IOException { int result; result = super.read(bytes); if (result != -1) { logger.log(bytes, 0, result); } return result; }
@Override public int read() throws IOException { int b; b = super.read(); if (b != -1) { logger.log((byte) b); } return b; }