@Override synchronized public void reset() throws IOException { try { delegate.reset(); } catch (IOException e) { throw handleException(format, e); } }
@Override public int available() throws IOException { try { return delegate.available(); } catch (IOException e) { throw handleException(format, e); } }
@Override public long skip(long n) throws IOException { try { return delegate.skip(n); } catch (IOException e) { throw handleException(format, e); } }
@Override public void close() throws IOException { try { delegate.close(); } catch (IOException e) { throw handleException(format, e); } }
@Override public int read(byte[] b, int off, int len) throws IOException { try { return delegate.read(b, off, len); } catch (IOException e) { throw handleException(format, e); } }
@Override public int read() throws IOException { try { return delegate.read(); } catch (IOException e) { throw handleException(format, e); } }
@Override public int read() throws IOException { try { return delegate.read(); } catch (IOException e) { throw handleException(format, e); } }
@Override public int read(byte[] b, int off, int len) throws IOException { try { return delegate.read(b, off, len); } catch (IOException e) { throw handleException(format, e); } }
@Override public int available() throws IOException { try { return delegate.available(); } catch (IOException e) { throw handleException(format, e); } }
@Override public long skip(long n) throws IOException { try { return delegate.skip(n); } catch (IOException e) { throw handleException(format, e); } }
@Override public void close() throws IOException { try { delegate.close(); } catch (IOException e) { throw handleException(format, e); } }
@Override synchronized public void reset() throws IOException { try { delegate.reset(); } catch (IOException e) { throw handleException(format, e); } }
private WrappedServletRequest wrapGzippedRequest(HttpServletRequest request) throws IOException { try { final GZIPInputStream input = new GZIPInputStream(request.getInputStream(), inputBufferSize); return new WrappedServletRequest(request, new ZipExceptionHandlingInputStream(input, GZIP)); } catch (IOException e) { throw ZipExceptionHandlingInputStream.handleException(GZIP, e); } }
private WrappedServletRequest wrapDeflatedRequest(HttpServletRequest request) throws IOException { final Inflater inflater = buildInflater(); try { final InflaterInputStream input = new InflaterInputStream(request.getInputStream(), inflater, inputBufferSize) { @Override public void close() throws IOException { super.close(); localInflater.set(inflater); } }; return new WrappedServletRequest(request, new ZipExceptionHandlingInputStream(input, DEFLATE)); } catch (IOException e) { throw ZipExceptionHandlingInputStream.handleException(DEFLATE, e); } }