* @return The result after decompressing BSPMessageBundle.
*/
@Override
public byte[] decompress(byte[] compressedBytes) {
ByteArrayInputStream bis = null;
CompressionInputStream sis = null;
DataInputStream dis = null;
byte[] bytes = null;
try {
bis = new ByteArrayInputStream(compressedBytes);
sis = codec.createInputStream(bis);
dis = new DataInputStream(sis);
bytes = IOUtils.toByteArray(dis);
} catch (IOException ioe) {
LOG.error("Unable to decompress.", ioe);
} finally {
try {
dis.close();
sis.close();
bis.close();
} catch (IOException e) {
LOG.warn("Failed to close decompression streams.", e);
}
}