{
    "mode": "perldoc",
    "parameter": "Dpkg::Compression::Process",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/Dpkg%3A%3ACompression%3A%3AProcess/json",
    "generated": "2026-06-09T18:50:55Z",
    "sections": {
        "NAME": {
            "content": "Dpkg::Compression::Process - run compression/decompression processes\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "This module provides an object oriented interface to run and manage compression/decompression\nprocesses.\n",
            "subsections": []
        },
        "METHODS": {
            "content": "$proc = Dpkg::Compression::Process->new(%opts)\nCreate a new instance of the object. Supported options are \"compression\" and\n\"compressionlevel\" (see corresponding set* functions).\n\n$proc->setcompression($comp)\nSelect the compression method to use. It errors out if the method is not supported according\nto \"compressionissupported\" (of Dpkg::Compression).\n\n$proc->setcompressionlevel($level)\nSelect the compression level to use. It errors out if the level is not valid according to\n\"compressionisvalidlevel\" (of Dpkg::Compression).\n\n@exec = $proc->getcompresscmdline()\n@exec = $proc->getuncompresscmdline()\nReturns a list ready to be passed to \"exec\", its first element is the program name (either\nfor compression or decompression) and the following elements are parameters for the program.\n\nWhen executed the program acts as a filter between its standard input and its standard\noutput.\n\n$proc->compress(%opts)\nStarts a compressor program. You must indicate where it will read its uncompressed data from\nand where it will write its compressed data to. This is accomplished by passing one\nparameter \"to*\" and one parameter \"from*\" as accepted by Dpkg::IPC::spawn.\n\nYou must call \"waitendprocess\" after having called this method to properly close the\nsub-process (and verify that it exited without error).\n\n$proc->uncompress(%opts)\nStarts a decompressor program. You must indicate where it will read its compressed data from\nand where it will write its uncompressed data to. This is accomplished by passing one\nparameter \"to*\" and one parameter \"from*\" as accepted by Dpkg::IPC::spawn.\n\nYou must call \"waitendprocess\" after having called this method to properly close the\nsub-process (and verify that it exited without error).\n\n$proc->waitendprocess(%opts)\nCall Dpkg::IPC::waitchild to wait until the sub-process has exited and verify its return\ncode. Any given option will be forwarded to the \"waitchild\" function. Most notably you can\nuse the \"nocheck\" option to verify the return code yourself instead of letting \"waitchild\"\ndo it for you.\n",
            "subsections": []
        },
        "CHANGES": {
            "content": "Version 1.00 (dpkg 1.15.6)\nMark the module as public.\n",
            "subsections": []
        }
    },
    "summary": "Dpkg::Compression::Process - run compression/decompression processes",
    "flags": [],
    "examples": [],
    "see_also": []
}