public static void inflateData(byte[] deflated,byte[] inflated){
  Inflater inflater=new Inflater();
  inflater.setInput(deflated);
  try {
    inflater.inflate(inflated);
  }
 catch (  DataFormatException dfe) {
    throw new IOException(IOException.CannotInflateTiffImage);
  }
}

public static void inflateData ( byte [ ] deflated , byte [ ] inflated ) { Inflater inflater = new Inflater ( ) ; inflater . setInput ( deflated ) ; try { inflater . inflate ( inflated ) ; } catch ( DataFormatException dfe ) { throw new IOException ( IOException . CannotInflateTiffImage ) ; } }
this method provides support for general purpose decompression using the popular zlib compression library .
