org.apache.james.mime4j.codec
public class CodecUtil extends java.lang.Object
Constructor and Description |
---|
CodecUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
copy(java.io.InputStream in,
java.io.OutputStream out)
Copies the contents of one stream to the other.
|
static void |
encodeBase64(java.io.InputStream in,
java.io.OutputStream out)
Encodes the given stream using base64.
|
static void |
encodeQuotedPrintable(java.io.InputStream in,
java.io.OutputStream out)
Encodes the given stream using Quoted-Printable.
|
static void |
encodeQuotedPrintableBinary(java.io.InputStream in,
java.io.OutputStream out)
Encodes the given stream using Quoted-Printable.
|
static java.io.OutputStream |
wrapBase64(java.io.OutputStream out)
Wraps the given stream in a Base64 encoder.
|
static java.io.OutputStream |
wrapQuotedPrintable(java.io.OutputStream out,
boolean binary)
Wraps the given stream in a Quoted-Printable encoder.
|
public static void copy(java.io.InputStream in, java.io.OutputStream out) throws java.io.IOException
in
- not nullout
- not nulljava.io.IOException
public static void encodeQuotedPrintableBinary(java.io.InputStream in, java.io.OutputStream out) throws java.io.IOException
in
- not nullout
- not nulljava.io.IOException
public static void encodeQuotedPrintable(java.io.InputStream in, java.io.OutputStream out) throws java.io.IOException
in
- not nullout
- not nulljava.io.IOException
public static void encodeBase64(java.io.InputStream in, java.io.OutputStream out) throws java.io.IOException
in
- not nullout
- not nulljava.io.IOException
- if an I/O error occurspublic static java.io.OutputStream wrapQuotedPrintable(java.io.OutputStream out, boolean binary) throws java.io.IOException
out
- not nulljava.io.IOException
public static java.io.OutputStream wrapBase64(java.io.OutputStream out) throws java.io.IOException
out
- not nulljava.io.IOException
Copyright © 2004-2016. All Rights Reserved.