{
    "content": [
        {
            "type": "text",
            "text": "# MIME::Decoder::NBit (perldoc)\n\n## NAME\n\nMIME::Decoder::NBit - encode/decode a \"7bit\" or \"8bit\" stream\n\n## SYNOPSIS\n\nA generic decoder object; see MIME::Decoder for usage.\n\n## DESCRIPTION\n\nThis is a MIME::Decoder subclass for the \"7bit\" and \"8bit\" content transfer encodings. These are\nnot \"encodings\" per se: rather, they are simply assertions of the content of the message. From\nRFC-2045 Section 6.2.:\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION** (4 subsections)\n- **SEE ALSO**\n- **AUTHOR**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "MIME::Decoder::NBit",
        "section": "",
        "mode": "perldoc",
        "summary": "MIME::Decoder::NBit - encode/decode a \"7bit\" or \"8bit\" stream",
        "synopsis": "A generic decoder object; see MIME::Decoder for usage.",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 19,
                "subsections": [
                    {
                        "name": "Legal 7bit data",
                        "lines": 9
                    },
                    {
                        "name": "Legal 8bit data",
                        "lines": 8
                    },
                    {
                        "name": "How decoding is done",
                        "lines": 4
                    },
                    {
                        "name": "How encoding is done",
                        "lines": 5
                    }
                ]
            },
            {
                "name": "SEE ALSO",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "AUTHOR",
                "lines": 5,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "MIME::Decoder::NBit - encode/decode a \"7bit\" or \"8bit\" stream\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "A generic decoder object; see MIME::Decoder for usage.\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "This is a MIME::Decoder subclass for the \"7bit\" and \"8bit\" content transfer encodings. These are\nnot \"encodings\" per se: rather, they are simply assertions of the content of the message. From\nRFC-2045 Section 6.2.:\n\nThree transformations are currently defined: identity, the \"quoted-\nprintable\" encoding, and the \"base64\" encoding.  The domains are\n\"binary\", \"8bit\" and \"7bit\".\n\nThe Content-Transfer-Encoding values \"7bit\", \"8bit\", and \"binary\" all\nmean that the identity (i.e. NO) encoding transformation has been\nperformed.  As such, they serve simply as indicators of the domain of\nthe body data, and provide useful information about the sort of\nencoding that might be needed for transmission in a given transport\nsystem.\n\nIn keeping with this: as of MIME-tools 4.x, *this class does no modification of its input when\nencoding;* all it does is attempt to *detect violations* of the 7bit/8bit assertion, and issue a\nwarning (one per message) if any are found.\n",
                "subsections": [
                    {
                        "name": "Legal 7bit data",
                        "content": "RFC-2045 Section 2.7 defines legal \"7bit\" data:\n\n\"7bit data\" refers to data that is all represented as relatively\nshort lines with 998 octets or less between CRLF line separation\nsequences [RFC-821].  No octets with decimal values greater than 127\nare allowed and neither are NULs (octets with decimal value 0).  CR\n(decimal value 13) and LF (decimal value 10) octets only occur as\npart of CRLF line separation sequences.\n"
                    },
                    {
                        "name": "Legal 8bit data",
                        "content": "RFC-2045 Section 2.8 defines legal \"8bit\" data:\n\n\"8bit data\" refers to data that is all represented as relatively\nshort lines with 998 octets or less between CRLF line separation\nsequences [RFC-821]), but octets with decimal values greater than 127\nmay be used.  As with \"7bit data\" CR and LF octets only occur as part\nof CRLF line separation sequences and no NULs are allowed.\n"
                    },
                    {
                        "name": "How decoding is done",
                        "content": "The decoder does a line-by-line pass-through from input to output, leaving the data unchanged\n*except* that an end-of-line sequence of CRLF is converted to a newline \"\\n\". Given the\nline-oriented nature of 7bit and 8bit, this seems relatively sensible.\n"
                    },
                    {
                        "name": "How encoding is done",
                        "content": "The encoder does a line-by-line pass-through from input to output, and simply attempts to\n*detect* violations of the \"7bit\"/\"8bit\" domain. The default action is to warn once per encoding\nif violations are detected; the warnings may be silenced with the QUIET configuration of\nMIME::Tools.\n"
                    }
                ]
            },
            "SEE ALSO": {
                "content": "MIME::Decoder\n",
                "subsections": []
            },
            "AUTHOR": {
                "content": "Eryq (eryq@zeegee.com), ZeeGee Software Inc (http://www.zeegee.com).\n\nAll rights reserved. This program is free software; you can redistribute it and/or modify it\nunder the same terms as Perl itself.\n",
                "subsections": []
            }
        }
    }
}