The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

FEAR::API::Document - Document class for FEAR::API

DESCRIPTION

This package is used to store documents fetched by FEAR::API::Agent.

METHODS

length(), size()

Returns length of document

as_string()

Stringifies document object.

digest()

Returns MD5 digests of documents

is_utf8

Checks if document is encoded in UTF-8

utf8_on(), utf8_off()

Turns on/off utf8 flag.

iconv_from()

Tries to convert document to UTF-8 from any encoding

append()

Appends your input to document object.

clear()

Clears document object

try_compress(), try_uncompress()

Tries to compress/uncompress document.

mime_encode(), mime_decode()

Encode/Decode your document in MIME

html_to_xhtml()

Upgrades documents to XHTML

xpath()

Applies XPath to your document

hpath()

Upgrades documents to XHTML, and applies XPath

tokens()

Tokenizes documents

AUTHOR & COPYRIGHT

Copyright (C) 2006 by Yung-chung Lin (a.k.a. xern) <xern@cpan.org>

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself