{
    "mode": "perldoc",
    "parameter": "TAP::Parser::SourceHandler::File",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/TAP%3A%3AParser%3A%3ASourceHandler%3A%3AFile/json",
    "generated": "2026-10-04T18:22:04Z",
    "synopsis": "use TAP::Parser::Source;\nuse TAP::Parser::SourceHandler::File;\nmy $source = TAP::Parser::Source->new->raw( \\'file.tap' );\n$source->assemblemeta;\nmy $class = 'TAP::Parser::SourceHandler::File';\nmy $vote  = $class->canhandle( $source );\nmy $iter  = $class->makeiterator( $source );",
    "sections": {
        "NAME": {
            "content": "TAP::Parser::SourceHandler::File - Stream TAP from a text file.\n",
            "subsections": []
        },
        "VERSION": {
            "content": "Version 3.44\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "use TAP::Parser::Source;\nuse TAP::Parser::SourceHandler::File;\n\nmy $source = TAP::Parser::Source->new->raw( \\'file.tap' );\n$source->assemblemeta;\n\nmy $class = 'TAP::Parser::SourceHandler::File';\nmy $vote  = $class->canhandle( $source );\nmy $iter  = $class->makeiterator( $source );\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "This is a *raw TAP stored in a file* TAP::Parser::SourceHandler - it has 2 jobs:\n\n1. Figure out if the *raw* source it's given is a file containing raw TAP output. See\nTAP::Parser::IteratorFactory for more details.\n\n2. Takes raw TAP from the text file given, and converts into an iterator.\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\nOnly votes if $source looks like a regular file. Casts the following votes:\n\n0.9 if it's a .tap file\n0.9 if it has an extension matching any given in user config.\n\n\"makeiterator\"\nmy $iterator = $class->makeiterator( $source );\n\nReturns a new TAP::Parser::Iterator::Stream for the source. \"croak\"s on error.\n\n\"iteratorclass\"\nThe class of iterator to use, override if you're sub-classing. Defaults to\nTAP::Parser::Iterator::Stream.\n"
                }
            ]
        },
        "CONFIGURATION": {
            "content": "{\nextensions => [ @caseinsensitiveextstomatch ]\n}\n",
            "subsections": []
        },
        "SUBCLASSING": {
            "content": "Please see \"SUBCLASSING\" in TAP::Parser for a subclassing overview.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "TAP::Object, TAP::Parser, TAP::Parser::SourceHandler, TAP::Parser::SourceHandler::Executable,\nTAP::Parser::SourceHandler::Perl, TAP::Parser::SourceHandler::Handle,\nTAP::Parser::SourceHandler::RawTAP\n",
            "subsections": []
        }
    },
    "summary": "TAP::Parser::SourceHandler::File - Stream TAP from a text file.",
    "flags": [],
    "examples": [],
    "see_also": []
}