public class CodecUtil extends Object
| Constructor and Description |
|---|
CodecUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
copy(InputStream in,
OutputStream out)
Copies the contents of one stream to the other.
|
static void |
encodeBase64(InputStream in,
OutputStream out)
Encodes the given stream using base64.
|
static void |
encodeQuotedPrintable(InputStream in,
OutputStream out)
Encodes the given stream using Quoted-Printable.
|
static void |
encodeQuotedPrintableBinary(InputStream in,
OutputStream out)
Encodes the given stream using Quoted-Printable.
|
static OutputStream |
wrapBase64(OutputStream out)
Wraps the given stream in a Base64 encoder.
|
static OutputStream |
wrapQuotedPrintable(OutputStream out,
boolean binary)
Wraps the given stream in a Quoted-Printable encoder.
|
public static void copy(InputStream in, OutputStream out) throws IOException
in - not nullout - not nullIOExceptionpublic static void encodeQuotedPrintableBinary(InputStream in, OutputStream out) throws IOException
in - not nullout - not nullIOExceptionpublic static void encodeQuotedPrintable(InputStream in, OutputStream out) throws IOException
in - not nullout - not nullIOExceptionpublic static void encodeBase64(InputStream in, OutputStream out) throws IOException
in - not nullout - not nullIOException - if an I/O error occurspublic static OutputStream wrapQuotedPrintable(OutputStream out, boolean binary) throws IOException
out - not nullIOExceptionpublic static OutputStream wrapBase64(OutputStream out) throws IOException
out - not nullIOExceptionCopyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.