/*
 * SDK Pullenti Unitext, version 4.33, fabruary 2026. Copyright (c) 2013-2026, Pullenti. All rights reserved. 
 * Non-Commercial Freeware and Commercial Software. 
 * This class is generated using the converter Unisharping (www.unisharping.ru) from Pullenti C# project. 
 * The latest version of the code is available on the site www.pullenti.ru
 */

package com.pullenti.unitext.internal.misc;

public class MyZipEntry {

    public MyZipFile zip;

    public MyZipEntry(MyZipFile _zip) {
        zip = _zip;
    }

    public String name;

    public byte[] data;

    public int uncompressDataSize;

    public int pos;

    public int compressDataSize;

    public boolean encrypted;

    public boolean isDirectory;

    public int method;

    @Override
    public String toString() {
        return (name + " (" + uncompressDataSize + ")");
    }

    public byte[] getData() throws java.io.IOException, Exception {
        if (data != null) 
            return data;
        return zip.unzip(this);
    }
    public MyZipEntry() {
    }
}
