|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcryptix.util.mime.TransferEncoding
This abstract class provides an API for encoding and decoding data according to a MIME Content-Transfer-Encoding.
Note: The input to the encoding is always a sequence of bytes. Strictly speaking the output is a sequence of characters, but since for all MIME transfer encodings, these characters are from a subset of both the Unicode and ASCII character repertoires, it is possible to represent the output either as a String or as a byte array.
References:
Copyright © 1995-1997
Systemics Ltd on behalf of the
Cryptix Development Team.
All rights reserved.
$Revision: 1.1.1.1 $
Constructor Summary | |
TransferEncoding()
|
Method Summary | |
byte[] |
decode(byte[] data)
Decodes a byte array containing encoded ASCII. |
abstract byte[] |
decode(java.lang.String msg)
Decodes a encoded String. |
abstract java.lang.String |
encode(byte[] data)
Encodes data as a String using this Content-Transfer-Encoding. |
byte[] |
encodeAsByteArray(byte[] data)
Encodes data as a byte array using this Content-Transfer-Encoding. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TransferEncoding()
Method Detail |
public abstract java.lang.String encode(byte[] data)
public byte[] encodeAsByteArray(byte[] data)
public byte[] decode(byte[] data) throws MIMEFormatException
MIMEFormatException
- if data contains invalid characters,
i.e. not codes 0-32 and the other codes allowed for this
encoding, or is otherwise formatted incorrectly.public abstract byte[] decode(java.lang.String msg) throws MIMEFormatException
MIMEFormatException
- if data contains invalid characters,
i.e. not codes 0-32 and the other codes allowed for this
encoding, or is otherwise formatted incorrectly.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |