Package org.apache.ant.compress.util

Examples of org.apache.ant.compress.util.CompressorWithConcatenatedStreamsFactory


                out = new FileOutputStream(dest);
                zIn = StreamHelper.getInputStream(factory, srcResource);
                if (zIn == null) {
                    fis = srcResource.getInputStream();
                    if (factory instanceof CompressorWithConcatenatedStreamsFactory) {
                        CompressorWithConcatenatedStreamsFactory f
                            = (CompressorWithConcatenatedStreamsFactory) factory;
                        zIn = f.getCompressorStream(new BufferedInputStream(fis),
                                                    decompressConcatenated);
                    } else {
                        zIn = factory.getCompressorStream(new BufferedInputStream(fis));
                    }
                }
View Full Code Here


     * @return the wrapped stream.
     * @throws IOException if there is a problem.
     */
    protected final InputStream wrapStream(InputStream in) throws IOException {
        if (factory instanceof CompressorWithConcatenatedStreamsFactory) {
            CompressorWithConcatenatedStreamsFactory f
                = (CompressorWithConcatenatedStreamsFactory) factory;
            return f.getCompressorStream(new BufferedInputStream(in),
                                         decompressConcatenated);
        } else {
            return factory.getCompressorStream(new BufferedInputStream(in));
        }
    }
View Full Code Here

     * @return the wrapped stream.
     * @throws IOException if there is a problem.
     */
    protected final InputStream wrapStream(InputStream in) throws IOException {
        if (factory instanceof CompressorWithConcatenatedStreamsFactory) {
            CompressorWithConcatenatedStreamsFactory f
                = (CompressorWithConcatenatedStreamsFactory) factory;
            return f.getCompressorStream(new BufferedInputStream(in),
                                         decompressConcatenated);
        } else {
            return factory.getCompressorStream(new BufferedInputStream(in));
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.ant.compress.util.CompressorWithConcatenatedStreamsFactory

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.