パッケージ jakarta.mail.util
インターフェース StreamProvider
public interface StreamProvider
サービスルックアップは、このインターフェースの実装を見つけるために使用されます。これには、API で必要なさまざまなエンコーダー / デコーダーおよびその他のストリームをインスタンス化するメソッドが含まれています。
- 導入:
- JavaMail 2.1
ネストされたクラスのサマリー
ネストされたクラスメソッドのサマリー
修飾子と型メソッド説明InputStream から "base64" デコーダーを作成します。InputStream から「バイナリ」、「7 ビット」、「8 ビット」のデコーダを作成します。inputLineStream
(InputStreamSE in, boolean allowutf8) 入力ストリームからの US-ASCII 文字のみを含む CRLF 終了行の読み取りをサポートする新しい LineInputStream を作成しますinputQ
(InputStreamSE in) InputStream から "q" デコーダを作成します。inputQP
(InputStreamSE in) InputStream から "quoted-printable" デコーダーを作成します。inputSharedByteArray
(byte[] buff) 基礎となるバイト配列から新しい InputStream を作成し、複数のリーダー間で共有します。inputUU
(InputStreamSE in) InputStream から "uuencode"、"x-uuencode"、"x-uue" デコーダーを作成します。outputB
(OutputStreamSE out) OutputStream から "b" エンコーダを作成します。OutputStream から "base64" エンコーダーを作成します。OutputStream から「バイナリ」、「7 ビット」、「8 ビット」エンコーダを作成します。outputLineStream
(OutputStreamSE out, boolean allowutf8) CRLF シーケンスで終了するバイトシーケンスとしての文字列の書き込みをサポートする新しい LineOutputStream を作成します。outputQ
(OutputStreamSE out, boolean encodingWord) 'q' エンコーダーを作成します。outputQP
(OutputStreamSE out) OutputStream から "quoted-printable" エンコーダを作成します。outputUU
(OutputStreamSE out, StringSE filename) OutputStream から "uuencode"、"x-uuencode"、"x-uue" エンコーダーを作成します。static StreamProvider
provider()
ストリームプロバイダーオブジェクトを作成します。
メソッドの詳細
inputBase64
InputStream から "base64" デコーダーを作成します。- パラメーター:
in
- InputStream- 戻り値:
- デコーダー
outputBase64
OutputStream から "base64" エンコーダーを作成します。- パラメーター:
out
- OutputStream- 戻り値:
- エンコーダー
inputBinary
InputStream から「バイナリ」、「7 ビット」、「8 ビット」のデコーダを作成します。- パラメーター:
in
- InputStream- 戻り値:
- デコーダー
outputBinary
OutputStream から「バイナリ」、「7 ビット」、「8 ビット」エンコーダを作成します。- パラメーター:
out
- OutputStream- 戻り値:
- エンコーダー
outputB
OutputStream から "b" エンコーダを作成します。- パラメーター:
out
- OutputStream- 戻り値:
- エンコーダー
inputQ
InputStream から "q" デコーダを作成します。- パラメーター:
in
- InputStream- 戻り値:
- デコーダー
outputQ
'q' エンコーダーを作成します。- パラメーター:
out
- OutputStreamencodingWord
- フレーズ内の単語を Q エンコードする場合は true。- 戻り値:
- エンコーダー
inputLineStream
入力ストリームからの US-ASCII 文字のみを含む CRLF 終了行の読み取りをサポートする新しい LineInputStream を作成します- パラメーター:
in
- InputStreamallowutf8
- UTF-8 文字を許可しますか ?- 戻り値:
- LineInputStream
outputLineStream
CRLF シーケンスで終了するバイトシーケンスとしての文字列の書き込みをサポートする新しい LineOutputStream を作成します。文字列には、US-ASCII 文字のみを含める必要があります。- パラメーター:
out
- OutputStreamallowutf8
- UTF-8 文字を許可しますか ?- 戻り値:
- LineOutputStream
inputQP
InputStream から "quoted-printable" デコーダーを作成します。- パラメーター:
in
- InputStream- 戻り値:
- デコーダー
outputQP
OutputStream から "quoted-printable" エンコーダを作成します。- パラメーター:
out
- OutputStream- 戻り値:
- エンコーダー
inputUU
InputStream から "uuencode"、"x-uuencode"、"x-uue" デコーダーを作成します。- パラメーター:
in
- InputStream- 戻り値:
- デコーダー
outputUU
OutputStream から "uuencode"、"x-uuencode"、"x-uue" エンコーダーを作成します。- パラメーター:
out
- OutputStreamfilename
- エンコードされたバッファの名前を指定します。null にすることができます。- 戻り値:
- エンコーダー
provider
ストリームプロバイダーオブジェクトを作成します。プロバイダは、ServiceLoader.load(Class)
SE メソッドを使用してロードされます。利用可能なサービスプロバイダーがない場合、このメソッドは IllegalStateException をスローします。ユーザーは、このメソッドの結果をキャッシュすることをお勧めします。- 戻り値:
- ストリームプロバイダー