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 nullIOException
public static void encodeQuotedPrintableBinary(InputStream in, OutputStream out) throws IOException
in
- not nullout
- not nullIOException
public static void encodeQuotedPrintable(InputStream in, OutputStream out) throws IOException
in
- not nullout
- not nullIOException
public 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 nullIOException
public static OutputStream wrapBase64(OutputStream out) throws IOException
out
- not nullIOException
Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.