174175176177178179180181182183184
} @Override public void write(byte[] b, int off, int len) throws IOException { if (abort) { throw new AbortException(); } outputStream.write(b, off, len); bytesSent += len; }
184185186187188189190191192193194
} @Override public void write(int b) throws IOException { if (abort) { throw new AbortException(); } outputStream.write(b); bytesSent++; }
4243444546474849505152
} @Override public int read() throws IOException { if (abort) { throw new AbortException(); } int result = inputStream.read(); if (result != -1) {
5758596061626364656667
} @Override public int read(byte b[]) throws IOException { if (abort) { throw new AbortException(); } int count = inputStream.read(b); if (count != -1) {
7273747576777879808182
} @Override public int read(byte b[], int off, int len) throws IOException { if (abort) { throw new AbortException(); } int count = inputStream.read(b, off, len); if (count != -1) {
8788899091929394959697
} @Override public long skip(long n) throws IOException { if (abort) { throw new AbortException(); } long count = inputStream.skip(n); bytesReceived += count; return count;
9899100101102103104105106107
} @Override public int available() throws IOException { if (abort) { throw new AbortException(); } return inputStream.available(); }
112113114115116117118119120121122
} @Override public synchronized void mark(int readLimit) { if (abort) { throw new AbortException(); } inputStream.mark(readLimit); mark = bytesReceived; }
122123124125126127128129130131132
} @Override public synchronized void reset() throws IOException { if (abort) { throw new AbortException(); } inputStream.reset(); bytesReceived = mark; }
154155156157158159160161162163
} @Override public void flush() throws IOException { if (abort) { throw new AbortException(); } outputStream.flush(); }