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

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

Introduction

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

Prototype

public int getDeCompressedSize() 

Source Link

Document

Returns how big the decompressed version was.

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