{
    "content": [
        {
            "type": "text",
            "text": "# Dpkg::Interface::Storable (perldoc)\n\n## NAME\n\nDpkg::Interface::Storable - common methods related to object serialization\n\n## DESCRIPTION\n\nDpkg::Interface::Storable is only meant to be used as parent class for other classes. It\nprovides common methods that are all implemented on top of two basic methods parse() and\n\n## Sections\n\n- **NAME**\n- **DESCRIPTION** (1 subsections)\n- **BASE METHODS**\n- **PROVIDED METHODS**\n- **CHANGES**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "Dpkg::Interface::Storable",
        "section": "",
        "mode": "perldoc",
        "summary": "Dpkg::Interface::Storable - common methods related to object serialization",
        "synopsis": null,
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 2,
                "subsections": [
                    {
                        "name": "output",
                        "lines": 1
                    }
                ]
            },
            {
                "name": "BASE METHODS",
                "lines": 11,
                "subsections": []
            },
            {
                "name": "PROVIDED METHODS",
                "lines": 15,
                "subsections": []
            },
            {
                "name": "CHANGES",
                "lines": 6,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "Dpkg::Interface::Storable - common methods related to object serialization\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "Dpkg::Interface::Storable is only meant to be used as parent class for other classes. It\nprovides common methods that are all implemented on top of two basic methods parse() and",
                "subsections": [
                    {
                        "name": "output",
                        "content": ""
                    }
                ]
            },
            "BASE METHODS": {
                "content": "Those methods must be provided by the class that wish to inherit from Dpkg::Interface::Storable\nso that the methods provided can work.\n\n$obj->parse($fh[, $desc])\nThis methods initialize the object with the data stored in the filehandle. $desc is optional\nand is a textual description of the filehandle used in error messages.\n\n$string = $obj->output([$fh])\nThis method returns a string representation of the object in $string and it writes the same\nstring to $fh (if it's defined).\n",
                "subsections": []
            },
            "PROVIDED METHODS": {
                "content": "$obj->load($filename, %opts)\nInitialize the object with the data stored in the file. The file can be compressed, it will\nbe decompressed on the fly by using a Dpkg::Compression::FileHandle object. If\n$opts{compression} is false the decompression support will be disabled. If $filename is \"-\",\nthen the standard input is read (no compression is allowed in that case).\n\n$obj->save($filename, %opts)\nStore the object in the file. If the filename ends with a known compression extension, it\nwill be compressed on the fly by using a Dpkg::Compression::FileHandle object. If\n$opts{compression} is false the compression support will be disabled. If $filename is \"-\",\nthen the standard output is used (data are written uncompressed in that case).\n\n\"$obj\"\nReturn a string representation of the object.\n",
                "subsections": []
            },
            "CHANGES": {
                "content": "Version 1.01 (dpkg 1.19.0)\nNew options: The $obj->load() and $obj->save() methods support a new compression option.\n\nVersion 1.00 (dpkg 1.15.6)\nMark the module as public.\n",
                "subsections": []
            }
        }
    }
}