@SuppressWarnings("resource") @Override 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)); }
@SuppressWarnings("resource") @Override OutputStream encode(final OutputStream out, final Object options) { return new FlushShieldFilterOutputStream(opts.getOutputStream(new FinishableWrapperOutputStream(out))); } }
@SuppressWarnings("resource") @Override 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)); }
@SuppressWarnings("resource") @Override OutputStream encode(final OutputStream out, final Object options) { return new FlushShieldFilterOutputStream(opts.getOutputStream(new FinishableWrapperOutputStream(out))); } }