NAME

DTA::CAB::Format::Null - Datum parser|formatter (dummy)

SYNOPSIS

 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);
 

DESCRIPTION

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.

Methods

new
 $fmt = CLASS_OR_OBJ->new(%args);
fromString
 $fmt = $fmt->fromString($string)

Really just calls $fmt->close().

parseDocument
 $doc = $fmt->parseDocument();

Returns a new (empty) DTA::CAB::Document.

mimeType
 $type = $fmt->mimeType();

Default returns text/plain.

defaultExtension
 $ext = $fmt->defaultExtension();

Returns default filename extension for this format, here '.null'.

toString
 $str = $fmt->toString();
 $str = $fmt->toString($formatLevel);

Just returns an empty string.

putToken
 $fmt = $fmt->putToken($tok);

Does nothing.

putSentence
 $fmt = $fmt->putSentence($sent);

Does nothing.

putDocument
 $fmt = $fmt->putDocument($doc);

Does nothing.

AUTHOR

Bryan Jurish <moocow@cpan.org>

COPYRIGHT AND LICENSE

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.

SEE ALSO

dta-cab-convert.perl(1), DTA::CAB::Format(3pm), DTA::CAB::Format::Builtin(3pm), DTA::CAB(3pm), perl(1), ...