1MIME::Decoder::Base64(3U)ser Contributed Perl DocumentatiMoInME::Decoder::Base64(3)
2
3
4
6 MIME::Decoder::Base64 - encode/decode a "base64" stream
7
9 A generic decoder object; see MIME::Decoder for usage.
10
12 A MIME::Decoder subclass for the "base64" encoding. The name was cho‐
13 sen to jibe with the pre-existing MIME::Base64 utility package, which
14 this class actually uses to translate each chunk.
15
16 · When decoding, the input is read one line at a time. The input
17 accumulates in an internal buffer, which is decoded in multi‐
18 ple-of-4-sized chunks (plus a possible "leftover" input chunk, of
19 course).
20
21 · When encoding, the input is read 45 bytes at a time: this ensures
22 that the output lines are not too long. We chose 45 since it is a
23 multiple of 3 and produces lines under 76 characters, as RFC-1521
24 specifies.
25
27 Eryq (eryq@zeegee.com), ZeeGee Software Inc (http://www.zeegee.com).
28
29 All rights reserved. This program is free software; you can redis‐
30 tribute it and/or modify it under the same terms as Perl itself.
31
33 $Revision: 1.10 $ $Date: 2006/03/17 21:03:23 $
34
35
36
37perl v5.8.8 2006-03-17 MIME::Decoder::Base64(3)