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 $

Since: Cryptix 2.2.2

Author: Raif S. Naffah David Hopwood

Constructor Summary
Base64OutputStream(OutputStream os, boolean check)
If check is true then append a PGP-style checksum immediately after the base64 portion.
Base64OutputStream(OutputStream os)
Creates a Base64OutputStream with no checksum.
Base64OutputStream(OutputStream os, Checksum checksum, int length)
Creates a Base64OutputStream that uses the given checksum.
Method Summary
voidclose()
voidwrite(int b)
voidwrite(byte[] b, int offset, int length)

Constructor Detail

Base64OutputStream

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

See Also: PRZ24

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.

Method Detail

close

public void close()

write

public void write(int b)

write

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