Class cryptix.mime.QuotedPrintable
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class cryptix.mime.QuotedPrintable

java.lang.Object
   |
   +----cryptix.mime.QuotedPrintable

public class QuotedPrintable
extends Object
This class provides static functions to convert strings to and from the QuotedPrintable format described in RFC 2045 (Section 6.7). Note that although the arguments are passed and returned as Strings, they more correctly represent byte[]s, since every char is expected to be in the range to ÿ.

Author:
Jill Baker

Constructor Index

 o QuotedPrintable()

Method Index

 o decode(String)
Convert a string from Quoted Printable form to text canonical form.
 o encode(String)
Convert a string from text canonical form to Quoted Printable form.
 o isProbablyEncoded(String)
Test whether or not a String could have been generated by encode() or any similar generator which complies with the RFC.
 o main(String[])

Constructors

 o QuotedPrintable
  public QuotedPrintable()

Methods

 o encode
  public static String encode(String s)
Convert a string from text canonical form to Quoted Printable form. Line breaks (both before and after conversion) MUST be represented as \r\n - any other combination is treated as binary data.
Parameters:
s - canonical text to be encoded
Returns:
text in Quoted Printable form
 o decode
  public static String decode(String s)
Convert a string from Quoted Printable form to text canonical form. Unrecognised sequences starting with '=' are passed through unmodified. Note that this method will strip trailing whitespace from each line.
Parameters:
s - canonical text to be encoded
Returns:
text in Quoted Printable form
 o isProbablyEncoded
  public static boolean isProbablyEncoded(String s)
Test whether or not a String could have been generated by encode() or any similar generator which complies with the RFC.
 o main
  public static void main(String arg[]) throws FileNotFoundException, IOException

All Packages  Class Hierarchy  This Package  Previous  Next  Index