Package com.opensymphony.webwork.portlet.util

Source Code of com.opensymphony.webwork.portlet.util.UrlUnzipper

package com.opensymphony.webwork.portlet.util;


import java.io.File;
import java.net.URL;
import java.util.zip.ZipInputStream;

//Referenced classes of package com.atlassian.confluence.util:
//         AbstractUnzipper

public class UrlUnzipper extends AbstractUnzipper
{
    private URL zipUrl;


public UrlUnzipper(URL zipUrl, File destDir)
{
     this.zipUrl = zipUrl;
     super.destDir = destDir;
}

public void unzip()
     throws Exception
{
     ZipInputStream zis = new ZipInputStream(zipUrl.openStream());
     java.util.zip.ZipEntry zipEntry;
     while((zipEntry = zis.getNextEntry()) != null)
         saveEntry(zis, zipEntry);
}

public File unzipFileInArchive(String fileName)
     throws Exception
{
     throw new UnsupportedOperationException("Feature not implemented.");
}

}
TOP

Related Classes of com.opensymphony.webwork.portlet.util.UrlUnzipper

TOP
Copyright © 2018 www.massapi.com. 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.