The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Contentment::FileType::Other - Generic file type plugin

DESCRIPTION

This is a generic file type plugin, which is useful for inheriting from or to use as a catch-all for general files.

$mimetypes = Contentment::FileType::Other->mimetypes

Returns a MIME::Types object. Eventually, this object will allow custom MIME types to be specified for the object, but for now it merely provides access to a global singleton.

$test = Contentment::FileType::Other->filetype_match($file)

Always returns true.

$kind = Contentment::FileType::Other->real_kind($file)

Returns the MIME type of the file based upon the result of passing the file name to MIME::Types.

$kind = Contentment::FileType::Other->generated_kind($file)

In this case, this method is a synonym for real_kind.

@properties = Contentment::FileType::Other->properties($file)

Always returns an empty list.

$value = Contentment::FileType::Other->get_property($file, $key)

Always returns undef.

$result = Contentment::FileType::Other->generate($file, @args)

Always returns true. Writes the contents of the file to the currently selected file handle.

SEE ALSO

MIME::Types

AUTHOR

Andrew Sterling Hanenkamp, <hanenkamp@users.sourceforge.net>

COPYRIGHT AND LICENSE

Copyright 2005 Andrew Sterling Hanenkamp. All Rights Reserved.

Contentment is distributed and licensed under the same terms as Perl itself.