cryptix.pgp.charset
Class CharSet

java.lang.Object
  extended bycryptix.pgp.charset.CharSet

public class CharSet
extends java.lang.Object

This class contains static methods to convert between PGP's internal character set, and any charset whose name is recognised by old-PGP.

$Revision: 1.2 $

Author:
Jill Baker

Method Summary
static byte[] decode(byte[] in, java.lang.String name)
          Convert a byte[] buffer from the specified charset to PGP's internal form.
static byte[] encode(byte[] in, java.lang.String name)
          Convert a byte[] buffer from PGP's internal form to the specified charset.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

encode

public static byte[] encode(byte[] in,
                            java.lang.String name)
                     throws FormatException
Convert a byte[] buffer from PGP's internal form to the specified charset.

Throws:
FormatException

decode

public static byte[] decode(byte[] in,
                            java.lang.String name)
                     throws FormatException
Convert a byte[] buffer from the specified charset to PGP's internal form.

Throws:
FormatException