fluid-ws-java-client/src/main/java/com/fluidbpm/ws/client/v1/websocket/AGenericListMessageHandler.java
protected byte[] uncompress(
			byte[] compressedBytesParam
	) throws IOException {

		byte[] buffer = new byte[1024];

		byte[] returnVal = null;
		ZipInputStream zis = null;
		if(CHARSET == null) {
			zis = new ZipInputStream(
					new ByteArrayInputStream(compressedBytesParam));
		} else {
			zis = new ZipInputStream(
					new ByteArrayInputStream(compressedBytesParam),
					CHARSET);
		}

		//get the zip file content
		ByteArrayOutputStream bos = new ByteArrayOutputStream();

		//get the zipped file list entry
		ZipEntry ze = zis.getNextEntry();
		if(ze == null){
			return returnVal;
		}

		int len;
		while ((len = zis.read(buffer)) > 0) {
			bos.write(buffer, 0, len);
		}

		zis.closeEntry();
		zis.close();

		bos.flush();
		bos.close();

		returnVal = bos.toByteArray();

		return returnVal;
	}
protected byte[] uncompress(
			byte[] compressedBytesParam
	) throws IOException {

		byte[] buffer = new byte[1024];

		byte[] returnVal = null;
		ZipInputStream zis = null;
		if(CHARSET == null) {
			zis = new ZipInputStream(
					new ByteArrayInputStream(compressedBytesParam));
		} else {
			zis = new ZipInputStream(
					new ByteArrayInputStream(compressedBytesParam),
					CHARSET);
		}

		//get the zip file content
		ByteArrayOutputStream bos = new ByteArrayOutputStream();

		//get the zipped file list entry
		ZipEntry ze = zis.getNextEntry();
		if(ze == null){
			return returnVal;
		}

		int len;
		while ((len = zis.read(buffer)) > 0) {
			bos.write(buffer, 0, len);
		}

		zis.closeEntry();
		zis.close();

		bos.flush();
		bos.close();

		returnVal = bos.toByteArray();

		return returnVal;
	}
protected byte [ ] uncompress ( byte [ ] compressedBytesParam ) throws IOException { byte [ ] buffer = new byte [ 1024 ] ; byte [ ] returnVal = null ; ZipInputStream zis = null ; if ( CHARSET == null ) { zis = new ZipInputStream ( new ByteArrayInputStream ( compressedBytesParam ) ) ; } else { zis = new ZipInputStream ( new ByteArrayInputStream ( compressedBytesParam ) , CHARSET ) ; } //get the zip file content ByteArrayOutputStream bos = new ByteArrayOutputStream ( ) ; //get the zipped file list entry ZipEntry ze = zis . getNextEntry ( ) ; if ( ze == null ) { return returnVal ; } int len ; while ( ( len = zis . read ( buffer ) ) > 0 ) { bos . write ( buffer , 0 , len ) ; } zis . closeEntry ( ) ; zis . close ( ) ; bos . flush ( ) ; bos . close ( ) ; returnVal = bos . toByteArray ( ) ; return returnVal ; }
Uncompress the raw {@code compressedBytesParam}.

@param compressedBytesParam The compressed bytes to uncompress.

@return Uncompressed bytes.

@throws IOException - If there is an issue during the un-compression.
Uncompress the raw { @code compressedBytesParam } .