DTA::CAB::Format::Null - Datum parser|formatter (dummy)
use DTA::CAB::Format::Null; ##======================================================================== ## Methods $fmt = DTA::CAB::Format::Null->new(%args); $doc = $fmt->parseDocument(); $type = $fmt->mimeType(); $ext = $fmt->defaultExtension(); $str = $fmt->toString(); $fmt = $fmt->putToken($tok); $fmt = $fmt->putSentence($sent); $fmt = $fmt->putDocument($doc);
DTA::CAB::Format::Null is a DTA::CAB::Format subclass which doesn't actually perform any I/O operations at all, but can be useful for testing and debugging.
$fmt = CLASS_OR_OBJ->new(%args);
$fmt = $fmt->fromString($string)
Really just calls $fmt->close().
$doc = $fmt->parseDocument();
Returns a new (empty) DTA::CAB::Document.
$type = $fmt->mimeType();
Default returns text/plain.
$ext = $fmt->defaultExtension();
Returns default filename extension for this format, here '.null'.
$str = $fmt->toString(); $str = $fmt->toString($formatLevel);
Just returns an empty string.
$fmt = $fmt->putToken($tok);
Does nothing.
$fmt = $fmt->putSentence($sent);
$fmt = $fmt->putDocument($doc);
Bryan Jurish <moocow@cpan.org>
Copyright (C) 2010-2019 by Bryan Jurish
This package is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.24.1 or, at your option, any later version of Perl 5 you may have available.
dta-cab-convert.perl(1), DTA::CAB::Format(3pm), DTA::CAB::Format::Builtin(3pm), DTA::CAB(3pm), perl(1), ...
To install DTA::CAB, copy and paste the appropriate command in to your terminal.
cpanm
cpanm DTA::CAB
CPAN shell
perl -MCPAN -e shell install DTA::CAB
For more information on module installation, please visit the detailed CPAN module installation guide.