MIME::Parser::Reader - a line-oriented reader for a MIME::Parser
### Create a top-level reader, where chunks end at EOF: $rdr = MIME::Parser::Reader->new();
### Spawn a child reader, where chunks also end at a boundary: $subrdr = $rdr->spawn->add_boundary($bound);
### Spawn a child reader, where chunks also end at a given string: $subrdr = $rdr->spawn->add_terminator($string);
### Read until boundary or terminator: $subrdr->read_chunk($in, $out);
### Get info on how the stream ended: $eos = $subrdr->eos; $eos_type = $subrdr->eos_type;
Warning: this is a private class solely for use by MIME::Parser. This class has no official public interface
Закладки на сайте Проследить за страницей |
Created 1996-2024 by Maxim Chirkov Добавить, Поддержать, Вебмастеру |