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(); }
163164165166167168169170171172173
} @Override public void write(byte[] b) throws IOException { if (abort) { throw new AbortException(); } outputStream.write(b); bytesSent += b.length; }
173174175176177178179180181182183
} @Override public void write(byte[] b, int off, int len) throws IOException { if (abort) { throw new AbortException(); } outputStream.write(b, off, len); bytesSent += len; }
183184185186187188189190191192193
} @Override public void write(int b) throws IOException { if (abort) { throw new AbortException(); } outputStream.write(b); bytesSent++; }