Package jodd.io

Examples of jodd.io.StringOutputStream


      if (body != null) {
        removeHeader(HEADER_CONTENT_ENCODING);
        try {
          StringInputStream in = new StringInputStream(body, StringInputStream.Mode.STRIP);
          GZIPInputStream gzipInputStream = new GZIPInputStream(in);
          StringOutputStream out = new StringOutputStream(StringPool.ISO_8859_1);

          StreamUtil.copy(gzipInputStream, out);

          body(out.toString());
        } catch (IOException ioex) {
          throw new HttpException(ioex);
        }
      }
    }
View Full Code Here

TOP

Related Classes of jodd.io.StringOutputStream

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.