Package org.apache.ant.compress.util

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


* Unzip a file.
*/
public class Unzip extends ExpandBase {

    public Unzip() {
        super(new ZipStreamFactory());
    }
View Full Code Here


    private boolean useLanguageEncodingFlag = true;
    private UnicodeExtraField createUnicodeExtraFields = UnicodeExtraField.NEVER;
    private Zip64Enum zip64Mode = Zip64Enum.AS_NEEDED;

    public Zip() {
        setFactory(new ZipStreamFactory() {
                public ArchiveOutputStream getArchiveStream(OutputStream stream,
                                                            String encoding)
                    throws IOException {
                    ZipArchiveOutputStream o =
                        (ZipArchiveOutputStream) super.getArchiveStream(stream,
View Full Code Here

    public ZipScanner() {
        this(false, null);
    }

    public ZipScanner(boolean skipUnreadable, Project project) {
        super(new ZipStreamFactory(),
              new CommonsCompressArchiveScanner.ResourceBuilder() {
                public Resource buildResource(Resource archive, String encoding,
                                            ArchiveEntry entry) {
                    return new ZipResource(archive, encoding,
                                           (ZipArchiveEntry) entry);
View Full Code Here

* Unzip a file.
*/
public class Unzip extends ExpandBase {

    public Unzip() {
        super(new ZipStreamFactory());
    }
View Full Code Here

    private boolean fallBackToUTF8 = false;
    private boolean useLanguageEncodingFlag = true;
    private UnicodeExtraField createUnicodeExtraFields = UnicodeExtraField.NEVER;

    public Zip() {
        setFactory(new ZipStreamFactory() {
                public ArchiveOutputStream getArchiveStream(OutputStream stream,
                                                            String encoding)
                    throws IOException {
                    ZipArchiveOutputStream o =
                        (ZipArchiveOutputStream) super.getArchiveStream(stream,
View Full Code Here

    /**
     * Default constructor.
     */
    public ZipResource() {
        super(new ZipStreamFactory(), "zip");
    }
View Full Code Here

     * @param z the zipfile as File.
     * @param enc the encoding used for filenames.
     * @param e the ZipEntry.
     */
    public ZipResource(File z, String enc, ZipArchiveEntry e) {
        super(new ZipStreamFactory(), "zip", z, e);
        setEncoding(enc);
        setEntry(e);
    }
View Full Code Here

     * @param z the zipfile as File.
     * @param enc the encoding used for filenames.
     * @param e the ZipEntry.
     */
    public ZipResource(Resource z, String enc, ZipArchiveEntry e) {
        super(new ZipStreamFactory(), "zip", z, e);
        setEncoding(enc);
        setEntry(e);
    }
View Full Code Here

* Scans zip archives for resources.
*/
public class ZipScanner extends CommonsCompressArchiveScanner {

    public ZipScanner() {
        super(new ZipStreamFactory(),
              new CommonsCompressArchiveScanner.ResourceBuilder() {
                public Resource buildResource(Resource archive, String encoding,
                                            ArchiveEntry entry) {
                    return new ZipResource(archive, encoding,
                                           (ZipArchiveEntry) entry);
View Full Code Here

TOP

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

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.