cryptix.util.mime

Class Base64OutputStream


public class Base64OutputStream
extends FilterOutputStream

This class implements a BASE64 Character stream decoder as specified in RFC1521, part of the MIME specification as published by the Internet Engineering Task Force (IETF).

Copyright © 1995-1997 Systemics Ltd on behalf of the Cryptix Development Team.
All rights reserved.

$Revision: 1.1.1.1 $

Authors:
Raif S. Naffah
David Hopwood
Since:
Cryptix 2.2.2

Constructor Summary

Base64OutputStream(OutputStream os)
Creates a Base64OutputStream with no checksum.
Base64OutputStream(OutputStream os, Checksum checksum, int length)
Creates a Base64OutputStream that uses the given checksum.
Base64OutputStream(OutputStream os, boolean check)
If check is true then append a PGP-style checksum immediately after the base64 portion.

Method Summary

void
close()
void
write(byte[] b, int offset, int length)
void
write(int b)

Constructor Details

Base64OutputStream

public Base64OutputStream(OutputStream os)
Creates a Base64OutputStream with no checksum.

Base64OutputStream

public Base64OutputStream(OutputStream os,
                          Checksum checksum,
                          int length)
Creates a Base64OutputStream that uses the given checksum. The checksum will be length bytes long, where 0 <= length <= 8.

Base64OutputStream

public Base64OutputStream(OutputStream os,
                          boolean check)
If check is true then append a PGP-style checksum immediately after the base64 portion.

Method Details

close

public void close()
            throws IOException

write

public void write(byte[] b,
                  int offset,
                  int length)
            throws IOException

write

public void write(int b)
            throws IOException