@Override public int read() throws IOException { int result = 0; IOException ioe = null; try { result = super.read(); } catch (final IOException pException) { ioe = pException; } if (ioe != null) { noteError(ioe); } else if (result == -1) { noteFinished(); } else { noteDataByte(result); } return result; }
@Override public int read() throws IOException { int result = 0; IOException ioe = null; try { result = super.read(); } catch (final IOException pException) { ioe = pException; } if (ioe != null) { noteError(ioe); } else if (result == -1) { noteFinished(); } else { noteDataByte(result); } return result; }