Example usage for org.apache.commons.compress.utils FlushShieldFilterOutputStream FlushShieldFilterOutputStream

List of usage examples for org.apache.commons.compress.utils FlushShieldFilterOutputStream FlushShieldFilterOutputStream

Introduction

In this page you can find the example usage for org.apache.commons.compress.utils FlushShieldFilterOutputStream FlushShieldFilterOutputStream.

Prototype

public FlushShieldFilterOutputStream(OutputStream out) 

Source Link

Usage

From source file:srebrinb.compress.sevenzip.LZMADecoder.java

@SuppressWarnings("resource")
@Override/*from   w  w  w.  jav a 2  s  .c o m*/
OutputStream encode(final OutputStream out, final Object opts) throws IOException {
    // NOOP as LZMAOutputStream throws an exception in flush
    return new FlushShieldFilterOutputStream(new LZMAOutputStream(out, getOptions(opts), false));
}