Code example for GZIPOutputStream

Methods: close, flush, write

0
	} 
	 
	private static byte[] GZIP(byte[] bytes) {
		try { 
			ByteArrayOutputStream baos = new ByteArrayOutputStream();
			GZIPOutputStream gos = new GZIPOutputStream(baos);
			gos.write(bytes);
			gos.flush();
			gos.close();
			 
			return baos.toByteArray();
		} catch (IOException e) {
			Log.e(LOG, e.toString());
			e.printStackTrace();
		} 
		 
		return null; 
	} 
	 
	@SuppressWarnings("unchecked") 
	private static String getFingerprint(byte[] keyBlock) throws IOException, PGPException {