/*
 * 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.zip;

public class ZipUpdate {

    public ZipUpdate(ZipEntry _entry, UpdateCommand _command, IStaticDataSource dataSource, String fileName, com.pullenti.unisharp.Stream str) {
        dataSource_ = dataSource;
        filename_ = fileName;
        command_ = _command;
        _stream = str;
        entry_ = (ZipEntry)_entry.clone();
    }

    public ZipEntry getEntry() {
        return entry_;
    }


    public ZipEntry getOutEntry() {
        if (outEntry_ == null) 
            outEntry_ = (ZipEntry)entry_.clone();
        return outEntry_;
    }


    public UpdateCommand getCommand() {
        return command_;
    }


    public String getFilename() {
        return filename_;
    }


    public int getSizePatchOffset() {
        return sizePatchOffset_;
    }

    public int setSizePatchOffset(int value) {
        sizePatchOffset_ = value;
        return value;
    }


    public int getCrcPatchOffset() {
        return crcPatchOffset_;
    }

    public int setCrcPatchOffset(int value) {
        crcPatchOffset_ = value;
        return value;
    }


    public int getOffsetBasedSize() {
        return _offsetBasedSize;
    }

    public int setOffsetBasedSize(int value) {
        _offsetBasedSize = value;
        return value;
    }


    public com.pullenti.unisharp.Stream getSource() {
        if (_stream != null) 
            return _stream;
        com.pullenti.unisharp.Stream result = null;
        if (dataSource_ != null) 
            result = dataSource_.getSource();
        return result;
    }

    private ZipEntry entry_;

    private ZipEntry outEntry_;

    private UpdateCommand command_ = UpdateCommand.COPY;

    private IStaticDataSource dataSource_;

    private com.pullenti.unisharp.Stream _stream;

    private String filename_;

    private int sizePatchOffset_ = -1;

    private int crcPatchOffset_ = -1;

    private int _offsetBasedSize = -1;
    public ZipUpdate() {
    }
}
