Package biz.paluch.maven.configurator.model

Examples of biz.paluch.maven.configurator.model.CompressedContainer


     * @param ze
     * @throws IOException
     */
    private void compress(Log log, CompressedContainer entry, File source, ZipEntry ze) throws IOException
    {
        CompressedContainer cc = (CompressedContainer) entry;
        zos.putNextEntry(ze);

        ZipOutputStream subZipStream = new ZipOutputStream(new FilterOutputStream(zos)
        {
            @Override
View Full Code Here


     */
    private void extract(ZipEntry entry, File extractTarget, LimitedNonClosingInputStream lis) throws IOException {
        extractTarget.mkdirs();

        ZipInputStream childZipStream = new ZipInputStream(lis);
        CompressedContainer childContainer = new CompressedContainer(entry.getName());
        childContainer.setPackagingType(getPackagingType(entry));
        container.getEntries().add(childContainer);

        new ZipFileIteratorAndExtractor(childContainer, childZipStream, extractTarget).extract();
    }
View Full Code Here

     * @param source
     * @param ze
     * @throws IOException
     */
    private void compress(CompressedContainer entry, File source, ZipEntry ze) throws IOException {
        CompressedContainer cc = (CompressedContainer) entry;
        zos.putNextEntry(ze);

        ZipOutputStream subZipStream = new ZipOutputStream(new FilterOutputStream(zos) {
            @Override
            public void close() throws IOException {
View Full Code Here

TOP

Related Classes of biz.paluch.maven.configurator.model.CompressedContainer

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.