com.java4less.rmime
Class MimeEncoder
java.lang.Object
|
+--com.java4less.rmime.MimeEncoder
- public class MimeEncoder
- extends java.lang.Object
The mime encoder, implements the BASE64 and QUOTED_PRINTABLE encoding
algorithms. You can use this class to encode and decode data. However you dont
need to do it the POP connection and the MailMsg class will do it for you.
Method Summary |
static byte[] |
decodeB64(java.lang.String DataIn)
decodes a base64 encoded string |
static java.lang.String |
decodeQuoted(java.lang.String DataIn)
decodes a "quoted-printable" encoded string |
static java.lang.String |
encodeB64(byte[] DataIn)
encodes with base64. |
static java.lang.String |
encodeQuoted(java.lang.String DataIn)
encodes with "quoted-printable". |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NO_ENCODE
public static final int NO_ENCODE
BASE64
public static final int BASE64
QUOTED
public static final int QUOTED
MimeEncoder
public MimeEncoder()
decodeB64
public static byte[] decodeB64(java.lang.String DataIn)
- decodes a base64 encoded string
encodeB64
public static java.lang.String encodeB64(byte[] DataIn)
- encodes with base64.
decodeQuoted
public static java.lang.String decodeQuoted(java.lang.String DataIn)
- decodes a "quoted-printable" encoded string
encodeQuoted
public static java.lang.String encodeQuoted(java.lang.String DataIn)
- encodes with "quoted-printable".