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

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

Introduction

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

Prototype

public CompressedRTF() 

Source Link

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());
}