Example usage for org.apache.poi.hmef CompressedRTF decompress

List of usage examples for org.apache.poi.hmef CompressedRTF decompress

Introduction

In this page you can find the example usage for org.apache.poi.hmef CompressedRTF decompress.

Prototype

public byte[] decompress(InputStream src) throws IOException 

Source Link

Document

Decompresses the given input stream, returning the array of bytes of the decompressed input.

Usage

From source file:com.auxilii.msgparser.Message.java

License:Open Source License

private static String decompressRTF(byte[] compressedRTF) throws IOException {
    CompressedRTF decompressor = new CompressedRTF();
    byte[] decompressedRTF = decompressor.decompress(new ByteArrayInputStream(compressedRTF));
    return new String(decompressedRTF, 0, decompressor.getDeCompressedSize());
}