public interface StreamProvider
Modifier and Type | Interface and Description |
---|---|
static class |
StreamProvider.EncoderTypes
Enumeration with the different encoder types supported by the Mail API.
|
Modifier and Type | Method and Description |
---|---|
java.io.InputStream |
inputBase64(java.io.InputStream in)
Creates a 'base64' decoder from the InputStream.
|
java.io.InputStream |
inputBinary(java.io.InputStream in)
Creates a 'binary', '7bit' and '8bit' decoder from the InputStream.
|
LineInputStream |
inputLineStream(java.io.InputStream in,
boolean allowutf8)
Creates a new LineInputStream that supports reading CRLF terminated lines
containing only US-ASCII characters from an input stream
|
java.io.InputStream |
inputQ(java.io.InputStream in)
Creates a 'q' decoder from the InputStream.
|
java.io.InputStream |
inputQP(java.io.InputStream in)
Creates a 'quoted-printable' decoder from the InputStream.
|
java.io.InputStream |
inputSharedByteArray(byte[] buff)
Creates a new InputStream from the underlying byte array to be shared
between multiple readers.
|
java.io.InputStream |
inputUU(java.io.InputStream in)
Creates a 'uuencode', 'x-uuencode' and 'x-uue' decoder from the InputStream.
|
java.io.OutputStream |
outputB(java.io.OutputStream out)
Creates a 'b' encoder from the OutputStream.
|
java.io.OutputStream |
outputBase64(java.io.OutputStream out)
Creates a 'base64' encoder from the OutputStream.
|
java.io.OutputStream |
outputBinary(java.io.OutputStream out)
Creates a 'binary', '7bit' and '8bit' encoder from the OutputStream.
|
LineOutputStream |
outputLineStream(java.io.OutputStream out,
boolean allowutf8)
Creates a new LineOutputStream that supports writing out Strings as a sequence of bytes terminated
by a CRLF sequence.
|
java.io.OutputStream |
outputQ(java.io.OutputStream out,
boolean encodingWord)
Creates a 'q' encoder.
|
java.io.OutputStream |
outputQP(java.io.OutputStream out)
Creates a 'quoted-printable' encoder from the OutputStream.
|
java.io.OutputStream |
outputUU(java.io.OutputStream out,
java.lang.String filename)
Creates a 'uuencode', 'x-uuencode' and 'x-uue' encoder from the OutputStream.
|
static StreamProvider |
provider()
Creates a stream provider object.
|
java.io.InputStream inputBase64(java.io.InputStream in)
in
- the InputStreamjava.io.OutputStream outputBase64(java.io.OutputStream out)
out
- the OutputStreamjava.io.InputStream inputBinary(java.io.InputStream in)
in
- the InputStreamjava.io.OutputStream outputBinary(java.io.OutputStream out)
out
- the OutputStreamjava.io.OutputStream outputB(java.io.OutputStream out)
out
- the OutputStreamjava.io.InputStream inputQ(java.io.InputStream in)
in
- the InputStreamjava.io.OutputStream outputQ(java.io.OutputStream out, boolean encodingWord)
out
- the OutputStreamencodingWord
- true if we are Q-encoding a word within a phrase.LineInputStream inputLineStream(java.io.InputStream in, boolean allowutf8)
in
- the InputStreamallowutf8
- allow UTF-8 characters?LineOutputStream outputLineStream(java.io.OutputStream out, boolean allowutf8)
out
- the OutputStreamallowutf8
- allow UTF-8 characters?java.io.InputStream inputQP(java.io.InputStream in)
in
- the InputStreamjava.io.OutputStream outputQP(java.io.OutputStream out)
out
- the OutputStreamjava.io.InputStream inputSharedByteArray(byte[] buff)
buff
- the byte arrayjava.io.InputStream inputUU(java.io.InputStream in)
in
- the InputStreamjava.io.OutputStream outputUU(java.io.OutputStream out, java.lang.String filename)
out
- the OutputStreamfilename
- Specifies a name for the encoded buffer. It can be null.static StreamProvider provider()
ServiceLoader.load(Class)
method. If there are no available
service providers, this method throws an IllegalStateException.
Users are recommended to cache the result of this method.