title: How to wrap netty's ChannelBufferInputStream with InflaterInputStream for inflating data?
body: <p>I am using netty, and have to parse binary data in a ChannelBufferInputStream. Here's the code I am using:</p>
  
  <pre><code>ins.skipBytes(14); // skip 14 bytes header
  byte[] b = new byte[195]; // note that 195 is the length of data after inflation
  (new InflaterInputStream(ins)).read(b, 0, 195);
  </code></pre>
  
  <p>This works as expected, but it sets the mark on the ChannelBufferInputStream after 195 bytes.
  Needless to say, the mark should have been set after less that 195 bytes.</p>
  
  <p>Is it possible to get the no. of 'actual' bytes read from the inputstream so that I can set the mark myself? Or is there some other way to inflate a ChannelBuffer's data in netty?</p>