List of usage examples for java.util.zip InflaterOutputStream InflaterOutputStream
public InflaterOutputStream(OutputStream out, Inflater infl)
From source file:org.xlcloud.console.saml2.Saml2ServiceProviderConsumerServlet.java
private byte[] inflate(byte[] responseBytes) throws IOException { Inflater inflater = new Inflater(true); ByteArrayOutputStream out = new ByteArrayOutputStream(); InflaterOutputStream ios = new InflaterOutputStream(out, inflater); ios.write(responseBytes);//from ww w.ja v a 2 s. c o m ios.close(); return out.toByteArray(); }