Secure iNet Factory

com.jscape.inet.util
Class QuotedPrintable

java.lang.Object
  extended by com.jscape.inet.util.QuotedPrintable
All Implemented Interfaces:
Codec

public class QuotedPrintable
extends java.lang.Object
implements Codec

Implements methods for encoding and decoding using quoted-printable algorithm.


Constructor Summary
QuotedPrintable()
           
 
Method Summary
 byte[] decode(char[] contents)
          Decodes data encoded using quoted-printable algorithm.
 char[] encode(byte[] contents)
          Encodes data using quoted-printable algorithm.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QuotedPrintable

public QuotedPrintable()
Method Detail

encode

public char[] encode(byte[] contents)
Encodes data using quoted-printable algorithm.

Specified by:
encode in interface Codec
Parameters:
contents - the data to encode.

decode

public byte[] decode(char[] contents)
              throws java.lang.Exception
Decodes data encoded using quoted-printable algorithm.

Specified by:
decode in interface Codec
Throws:
java.lang.Exception - if an error occurs while decoding data.

Secure iNet Factory

Copyright © JSCAPE LLC. 1999-2011. All Rights Reserved