/* ----------------------------------------------------------------------------
 * This file was automatically generated by SWIG (https://www.swig.org).
 * Version 4.3.0
 *
 * Do not make changes to this file unless you know what you are doing - modify
 * the SWIG interface file instead.
 * ----------------------------------------------------------------------------- */

package com.chilkatsoft;

public class CkBz2 {
  private transient long swigCPtr;
  protected transient boolean swigCMemOwn;

  protected CkBz2(long cPtr, boolean cMemoryOwn) {
    swigCMemOwn = cMemoryOwn;
    swigCPtr = cPtr;
  }

  protected static long getCPtr(CkBz2 obj) {
    return (obj == null) ? 0 : obj.swigCPtr;
  }

  protected static long swigRelease(CkBz2 obj) {
    long ptr = 0;
    if (obj != null) {
      if (!obj.swigCMemOwn)
        throw new RuntimeException("Cannot release ownership as memory is not owned");
      ptr = obj.swigCPtr;
      obj.swigCMemOwn = false;
      obj.delete();
    }
    return ptr;
  }

  @SuppressWarnings({"deprecation", "removal"})
  protected void finalize() {
    delete();
  }

  public synchronized void delete() {
    if (swigCPtr != 0) {
      if (swigCMemOwn) {
        swigCMemOwn = false;
        chilkatJNI.delete_CkBz2(swigCPtr);
      }
      swigCPtr = 0;
    }
  }

  public CkBz2() {
    this(chilkatJNI.new_CkBz2(), true);
  }

  public void LastErrorXml(CkString str) {
    chilkatJNI.CkBz2_LastErrorXml(swigCPtr, this, CkString.getCPtr(str), str);
  }

  public void LastErrorHtml(CkString str) {
    chilkatJNI.CkBz2_LastErrorHtml(swigCPtr, this, CkString.getCPtr(str), str);
  }

  public void LastErrorText(CkString str) {
    chilkatJNI.CkBz2_LastErrorText(swigCPtr, this, CkString.getCPtr(str), str);
  }

  public void put_EventCallbackObject(CkBaseProgress progress) {
    chilkatJNI.CkBz2_put_EventCallbackObject(swigCPtr, this, CkBaseProgress.getCPtr(progress), progress);
  }

  public boolean get_AbortCurrent() {
    return chilkatJNI.CkBz2_get_AbortCurrent(swigCPtr, this);
  }

  public void put_AbortCurrent(boolean newVal) {
    chilkatJNI.CkBz2_put_AbortCurrent(swigCPtr, this, newVal);
  }

  public void get_DebugLogFilePath(CkString str) {
    chilkatJNI.CkBz2_get_DebugLogFilePath(swigCPtr, this, CkString.getCPtr(str), str);
  }

  public String debugLogFilePath() {
    return chilkatJNI.CkBz2_debugLogFilePath(swigCPtr, this);
  }

  public void put_DebugLogFilePath(String newVal) {
    chilkatJNI.CkBz2_put_DebugLogFilePath(swigCPtr, this, newVal);
  }

  public int get_HeartbeatMs() {
    return chilkatJNI.CkBz2_get_HeartbeatMs(swigCPtr, this);
  }

  public void put_HeartbeatMs(int newVal) {
    chilkatJNI.CkBz2_put_HeartbeatMs(swigCPtr, this, newVal);
  }

  public void get_LastErrorHtml(CkString str) {
    chilkatJNI.CkBz2_get_LastErrorHtml(swigCPtr, this, CkString.getCPtr(str), str);
  }

  public String lastErrorHtml() {
    return chilkatJNI.CkBz2_lastErrorHtml(swigCPtr, this);
  }

  public void get_LastErrorText(CkString str) {
    chilkatJNI.CkBz2_get_LastErrorText(swigCPtr, this, CkString.getCPtr(str), str);
  }

  public String lastErrorText() {
    return chilkatJNI.CkBz2_lastErrorText(swigCPtr, this);
  }

  public void get_LastErrorXml(CkString str) {
    chilkatJNI.CkBz2_get_LastErrorXml(swigCPtr, this, CkString.getCPtr(str), str);
  }

  public String lastErrorXml() {
    return chilkatJNI.CkBz2_lastErrorXml(swigCPtr, this);
  }

  public boolean get_LastMethodSuccess() {
    return chilkatJNI.CkBz2_get_LastMethodSuccess(swigCPtr, this);
  }

  public void put_LastMethodSuccess(boolean newVal) {
    chilkatJNI.CkBz2_put_LastMethodSuccess(swigCPtr, this, newVal);
  }

  public boolean get_VerboseLogging() {
    return chilkatJNI.CkBz2_get_VerboseLogging(swigCPtr, this);
  }

  public void put_VerboseLogging(boolean newVal) {
    chilkatJNI.CkBz2_put_VerboseLogging(swigCPtr, this, newVal);
  }

  public void get_Version(CkString str) {
    chilkatJNI.CkBz2_get_Version(swigCPtr, this, CkString.getCPtr(str), str);
  }

  public String version() {
    return chilkatJNI.CkBz2_version(swigCPtr, this);
  }

  public boolean CompressBd(CkBinData bd) {
    return chilkatJNI.CkBz2_CompressBd(swigCPtr, this, CkBinData.getCPtr(bd), bd);
  }

  public CkTask CompressBdAsync(CkBinData bd) {
    long cPtr = chilkatJNI.CkBz2_CompressBdAsync(swigCPtr, this, CkBinData.getCPtr(bd), bd);
    return (cPtr == 0) ? null : new CkTask(cPtr, true);
  }

  public boolean CompressFile(String inFilename, String toPath) {
    return chilkatJNI.CkBz2_CompressFile(swigCPtr, this, inFilename, toPath);
  }

  public CkTask CompressFileAsync(String inFilename, String toPath) {
    long cPtr = chilkatJNI.CkBz2_CompressFileAsync(swigCPtr, this, inFilename, toPath);
    return (cPtr == 0) ? null : new CkTask(cPtr, true);
  }

  public boolean CompressFileToMem(String inFilename, CkByteData outBytes) {
    return chilkatJNI.CkBz2_CompressFileToMem(swigCPtr, this, inFilename, CkByteData.getCPtr(outBytes), outBytes);
  }

  public CkTask CompressFileToMemAsync(String inFilename) {
    long cPtr = chilkatJNI.CkBz2_CompressFileToMemAsync(swigCPtr, this, inFilename);
    return (cPtr == 0) ? null : new CkTask(cPtr, true);
  }

  public boolean CompressMemory(CkByteData inData, CkByteData outBytes) {
    return chilkatJNI.CkBz2_CompressMemory(swigCPtr, this, CkByteData.getCPtr(inData), inData, CkByteData.getCPtr(outBytes), outBytes);
  }

  public CkTask CompressMemoryAsync(CkByteData inData) {
    long cPtr = chilkatJNI.CkBz2_CompressMemoryAsync(swigCPtr, this, CkByteData.getCPtr(inData), inData);
    return (cPtr == 0) ? null : new CkTask(cPtr, true);
  }

  public boolean CompressMemToFile(CkByteData inData, String toPath) {
    return chilkatJNI.CkBz2_CompressMemToFile(swigCPtr, this, CkByteData.getCPtr(inData), inData, toPath);
  }

  public CkTask CompressMemToFileAsync(CkByteData inData, String toPath) {
    long cPtr = chilkatJNI.CkBz2_CompressMemToFileAsync(swigCPtr, this, CkByteData.getCPtr(inData), inData, toPath);
    return (cPtr == 0) ? null : new CkTask(cPtr, true);
  }

  public boolean LoadTaskCaller(CkTask task) {
    return chilkatJNI.CkBz2_LoadTaskCaller(swigCPtr, this, CkTask.getCPtr(task), task);
  }

  public boolean UncompressBd(CkBinData bd) {
    return chilkatJNI.CkBz2_UncompressBd(swigCPtr, this, CkBinData.getCPtr(bd), bd);
  }

  public CkTask UncompressBdAsync(CkBinData bd) {
    long cPtr = chilkatJNI.CkBz2_UncompressBdAsync(swigCPtr, this, CkBinData.getCPtr(bd), bd);
    return (cPtr == 0) ? null : new CkTask(cPtr, true);
  }

  public boolean UncompressFile(String inFilename, String toPath) {
    return chilkatJNI.CkBz2_UncompressFile(swigCPtr, this, inFilename, toPath);
  }

  public CkTask UncompressFileAsync(String inFilename, String toPath) {
    long cPtr = chilkatJNI.CkBz2_UncompressFileAsync(swigCPtr, this, inFilename, toPath);
    return (cPtr == 0) ? null : new CkTask(cPtr, true);
  }

  public boolean UncompressFileToMem(String inFilename, CkByteData outBytes) {
    return chilkatJNI.CkBz2_UncompressFileToMem(swigCPtr, this, inFilename, CkByteData.getCPtr(outBytes), outBytes);
  }

  public CkTask UncompressFileToMemAsync(String inFilename) {
    long cPtr = chilkatJNI.CkBz2_UncompressFileToMemAsync(swigCPtr, this, inFilename);
    return (cPtr == 0) ? null : new CkTask(cPtr, true);
  }

  public boolean UncompressMemory(CkByteData inData, CkByteData outBytes) {
    return chilkatJNI.CkBz2_UncompressMemory(swigCPtr, this, CkByteData.getCPtr(inData), inData, CkByteData.getCPtr(outBytes), outBytes);
  }

  public CkTask UncompressMemoryAsync(CkByteData inData) {
    long cPtr = chilkatJNI.CkBz2_UncompressMemoryAsync(swigCPtr, this, CkByteData.getCPtr(inData), inData);
    return (cPtr == 0) ? null : new CkTask(cPtr, true);
  }

  public boolean UncompressMemToFile(CkByteData inData, String toPath) {
    return chilkatJNI.CkBz2_UncompressMemToFile(swigCPtr, this, CkByteData.getCPtr(inData), inData, toPath);
  }

  public CkTask UncompressMemToFileAsync(CkByteData inData, String toPath) {
    long cPtr = chilkatJNI.CkBz2_UncompressMemToFileAsync(swigCPtr, this, CkByteData.getCPtr(inData), inData, toPath);
    return (cPtr == 0) ? null : new CkTask(cPtr, true);
  }

}
