question: public static byte [ ] gzip ( final String input ) { final ByteArrayOutputStream baos = new FastByteArrayOutputStream ( ) ; GZIPOutputStream gzos = null ; try { gzos = new GZIPOutputStream ( baos ) ; gzos . write ( input . getBytes ( "UTF-8" ) ) ; } catch ( final IOException e ) { MainUtil . handleError ( e ) ; } finally { if ( gzos != null ) { try { gzos . close ( ) ; } catch ( final IOException ignore ) { } } } return baos . toByteArray ( ) ; }
target:  GZip compress a string of bytes