Package org.tukaani.xz

Examples of org.tukaani.xz.FinishableWrapperOutputStream


    @Override
    OutputStream encode(final OutputStream out, final Object opts)
        throws IOException {
        LZMA2Options options = getOptions(opts);
        FinishableOutputStream wrapped = new FinishableWrapperOutputStream(out);
        return options.getOutputStream(wrapped);
    }
View Full Code Here


                throw ex;
            }
        }
        @Override
        OutputStream encode(final OutputStream out, final Object options) {
            final FinishableOutputStream fo = opts.getOutputStream(new FinishableWrapperOutputStream(out));
            return new FilterOutputStream(fo) {
                @Override
                public void flush() {
                }
            };
View Full Code Here

    @Override
    OutputStream encode(final OutputStream out, final Object options) throws IOException {
        int distance = numberOptionOrDefault(options, 1);
        try {
            return new DeltaOptions(distance).getOutputStream(new FinishableWrapperOutputStream(out));
        } catch (UnsupportedOptionsException ex) {
            throw new IOException(ex.getMessage());
        }
    }
View Full Code Here

    @Override
    OutputStream encode(final OutputStream out, final byte[] password)
        throws IOException {
        LZMA2Options options = new LZMA2Options();
        options.setDictSize(LZMA2Options.DICT_SIZE_DEFAULT);
        FinishableOutputStream wrapped = new FinishableWrapperOutputStream(out);
        return new FinishOnCloseStream(options.getOutputStream(wrapped));
    }
View Full Code Here

    @Override
    OutputStream encode(final OutputStream out, final byte[] password)
        throws IOException {
        LZMA2Options options = new LZMA2Options();
        options.setDictSize(LZMA2Options.DICT_SIZE_DEFAULT);
        FinishableOutputStream wrapped = new FinishableWrapperOutputStream(out);
        return options.getOutputStream(wrapped);
    }
View Full Code Here

                throw ex;
            }
        }
        @Override
        OutputStream encode(final OutputStream out, final Object _) {
            final FinishableOutputStream fo = opts.getOutputStream(new FinishableWrapperOutputStream(out));
            return new FilterOutputStream(fo) {
                @Override
                public void flush() {
                }
            };
View Full Code Here

TOP

Related Classes of org.tukaani.xz.FinishableWrapperOutputStream

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.