Solstice::Service::FileContentExtractor - Extract text content from a variety of file types.


Solstice documentation  | view source Contained in the Solstice distribution.

Index


NAME

Top

Solstice::Service::FileContentExtractor - Extract text content from a variety of file types.

SYNOPSIS

Top

    use Solstice::Service::FileContentExtractor;

    my $service = Solstice::Service::FileContentExtractor->new();

    # Adding an extractor for a specific file type:
    $service->addExtractor({
        type     => 'text/plain',
        function => \&extract_text_function, 
    });

    my $file = Solstice::Resource::File::BlackBox();

    # Extracting content from a file
    my $text = $service->extract($file);

DESCRIPTION

Top

Export

None by default.

Methods

new()
addExtractor(\$params)

Add a content extractor function, The passed %params is { type => 'content type', function => a reference to a function, }

extract($file)

Private Methods

_init()

Private Functions

AUTHOR

Top

Educational Technology Development Group <catalyst@u.washington.edu>

VERSION

Top

$Revision: 597 $

SEE ALSO

Top

COPYRIGHT

Top


Solstice documentation  | view source Contained in the Solstice distribution.