@SuppressWarnings("resource") @Override OutputStream encode(final OutputStream out, final Object options) { return new FlushShieldFilterOutputStream(opts.getOutputStream(new FinishableWrapperOutputStream(out))); } }
@Override OutputStream encode(final OutputStream out, final Object opts) throws IOException { final LZMA2Options options = getOptions(opts); final FinishableOutputStream wrapped = new FinishableWrapperOutputStream(out); return options.getOutputStream(wrapped); }
@SuppressWarnings("resource") @Override OutputStream encode(final OutputStream out, final Object options) throws IOException { final int distance = numberOptionOrDefault(options, 1); try { return new DeltaOptions(distance).getOutputStream(new FinishableWrapperOutputStream(out)); } catch (final UnsupportedOptionsException ex) { throw new IOException(ex.getMessage()); } }
@SuppressWarnings("resource") @Override OutputStream encode(final OutputStream out, final Object options) { return new FlushShieldFilterOutputStream(opts.getOutputStream(new FinishableWrapperOutputStream(out))); } }
@Override OutputStream encode(final OutputStream out, final Object opts) throws IOException { final LZMA2Options options = getOptions(opts); final FinishableOutputStream wrapped = new FinishableWrapperOutputStream(out); return options.getOutputStream(wrapped); }
@SuppressWarnings("resource") @Override OutputStream encode(final OutputStream out, final Object options) throws IOException { final int distance = numberOptionOrDefault(options, 1); try { return new DeltaOptions(distance).getOutputStream(new FinishableWrapperOutputStream(out)); } catch (final UnsupportedOptionsException ex) { throw new IOException(ex.getMessage()); } }
throw new IllegalStateException("LZMA2Option configuration failed", e); FinishableWrapperOutputStream wrapped = new FinishableWrapperOutputStream(out); final org.tukaani.xz.FinishableOutputStream lzma2 = options.getOutputStream(wrapped); return new FinishableOutputStreamAdapter(lzma2) {
throw new IllegalStateException("LZMA2Option configuration failed", e); FinishableWrapperOutputStream wrapped = new FinishableWrapperOutputStream(out); final org.tukaani.xz.FinishableOutputStream lzma2 = options.getOutputStream(wrapped);