{
    "mode": "perldoc",
    "parameter": "TAP::Parser::SourceHandler::Handle",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/TAP%3A%3AParser%3A%3ASourceHandler%3A%3AHandle/json",
    "generated": "2026-06-12T19:41:32Z",
    "synopsis": "use TAP::Parser::Source;\nuse TAP::Parser::SourceHandler::Executable;\nmy $source = TAP::Parser::Source->new->raw( \\*TAPFILE );\n$source->assemblemeta;\nmy $class = 'TAP::Parser::SourceHandler::Handle';\nmy $vote  = $class->canhandle( $source );\nmy $iter  = $class->makeiterator( $source );",
    "sections": {
        "NAME": {
            "content": "TAP::Parser::SourceHandler::Handle - Stream TAP from an IO::Handle or a GLOB.\n",
            "subsections": []
        },
        "VERSION": {
            "content": "Version 3.43\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "use TAP::Parser::Source;\nuse TAP::Parser::SourceHandler::Executable;\n\nmy $source = TAP::Parser::Source->new->raw( \\*TAPFILE );\n$source->assemblemeta;\n\nmy $class = 'TAP::Parser::SourceHandler::Handle';\nmy $vote  = $class->canhandle( $source );\nmy $iter  = $class->makeiterator( $source );\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "This is a *raw TAP stored in an IO Handle* TAP::Parser::SourceHandler class. It has 2 jobs:\n\n1. Figure out if the TAP::Parser::Source it's given is an IO::Handle or GLOB containing raw TAP\noutput (\"canhandle\").\n\n2. Creates an iterator for IO::Handle's & globs (\"makeiterator\").\n\nUnless you're writing a plugin or subclassing TAP::Parser, you probably won't need to use this\nmodule directly.\n",
            "subsections": []
        },
        "METHODS": {
            "content": "",
            "subsections": [
                {
                    "name": "Class Methods",
                    "content": "\"canhandle\"\nmy $vote = $class->canhandle( $source );\n\nCasts the following votes:\n\n0.9 if $source is an IO::Handle\n0.8 if $source is a glob\n\n\"makeiterator\"\nmy $iterator = $class->makeiterator( $source );\n\nReturns a new TAP::Parser::Iterator::Stream for the source.\n\n\"iteratorclass\"\nThe class of iterator to use, override if you're sub-classing. Defaults to\nTAP::Parser::Iterator::Stream.\n"
                }
            ]
        },
        "SUBCLASSING": {
            "content": "Please see \"SUBCLASSING\" in TAP::Parser for a subclassing overview.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "TAP::Object, TAP::Parser, TAP::Parser::Iterator, TAP::Parser::Iterator::Stream,\nTAP::Parser::IteratorFactory, TAP::Parser::SourceHandler,\nTAP::Parser::SourceHandler::Executable, TAP::Parser::SourceHandler::Perl,\nTAP::Parser::SourceHandler::File, TAP::Parser::SourceHandler::RawTAP\n",
            "subsections": []
        }
    },
    "summary": "TAP::Parser::SourceHandler::Handle - Stream TAP from an IO::Handle or a GLOB.",
    "flags": [],
    "examples": [],
    "see_also": []
}