パッケージ jakarta.mail.util

インターフェース StreamProvider


public interface StreamProvider
サービスルックアップは、このインターフェースの実装を見つけるために使用されます。これには、API で必要なさまざまなエンコーダー / デコーダーおよびその他のストリームをインスタンス化するメソッドが含まれています。
導入:
JavaMail 2.1
  • メソッドの詳細

    • inputBase64

      InputStreamSE inputBase64(InputStreamSE in)
      InputStream から "base64" デコーダーを作成します。
      パラメーター:
      in - InputStream
      戻り値:
      デコーダー
    • outputBase64

      OutputStreamSE outputBase64(OutputStreamSE out)
      OutputStream から "base64" エンコーダーを作成します。
      パラメーター:
      out - OutputStream
      戻り値:
      エンコーダー
    • inputBinary

      InputStreamSE inputBinary(InputStreamSE in)
      InputStream から「バイナリ」、「7 ビット」、「8 ビット」のデコーダを作成します。
      パラメーター:
      in - InputStream
      戻り値:
      デコーダー
    • outputBinary

      OutputStreamSE outputBinary(OutputStreamSE out)
      OutputStream から「バイナリ」、「7 ビット」、「8 ビット」エンコーダを作成します。
      パラメーター:
      out - OutputStream
      戻り値:
      エンコーダー
    • outputB

      OutputStream から "b" エンコーダを作成します。
      パラメーター:
      out - OutputStream
      戻り値:
      エンコーダー
    • inputQ

      InputStream から "q" デコーダを作成します。
      パラメーター:
      in - InputStream
      戻り値:
      デコーダー
    • outputQ

      OutputStreamSE outputQ(OutputStreamSE out, boolean encodingWord)
      'q' エンコーダーを作成します。
      パラメーター:
      out - OutputStream
      encodingWord - フレーズ内の単語を Q エンコードする場合は true。
      戻り値:
      エンコーダー
    • inputLineStream

      LineInputStream inputLineStream(InputStreamSE in, boolean allowutf8)
      入力ストリームからの US-ASCII 文字のみを含む CRLF 終了行の読み取りをサポートする新しい LineInputStream を作成します
      パラメーター:
      in - InputStream
      allowutf8 - UTF-8 文字を許可しますか ?
      戻り値:
      LineInputStream
    • outputLineStream

      LineOutputStream outputLineStream(OutputStreamSE out, boolean allowutf8)
      CRLF シーケンスで終了するバイトシーケンスとしての文字列の書き込みをサポートする新しい LineOutputStream を作成します。文字列には、US-ASCII 文字のみを含める必要があります。
      パラメーター:
      out - OutputStream
      allowutf8 - UTF-8 文字を許可しますか ?
      戻り値:
      LineOutputStream
    • inputQP

      InputStream から "quoted-printable" デコーダーを作成します。
      パラメーター:
      in - InputStream
      戻り値:
      デコーダー
    • outputQP

      OutputStream から "quoted-printable" エンコーダを作成します。
      パラメーター:
      out - OutputStream
      戻り値:
      エンコーダー
    • inputSharedByteArray

      InputStreamSE inputSharedByteArray(byte[] buff)
      基礎となるバイト配列から新しい InputStream を作成し、複数のリーダー間で共有します。
      パラメーター:
      buff - バイト配列
      戻り値:
      InputStream
    • inputUU

      InputStream から "uuencode"、"x-uuencode"、"x-uue" デコーダーを作成します。
      パラメーター:
      in - InputStream
      戻り値:
      デコーダー
    • outputUU

      OutputStreamSE outputUU(OutputStreamSE out, StringSE filename)
      OutputStream から "uuencode"、"x-uuencode"、"x-uue" エンコーダーを作成します。
      パラメーター:
      out - OutputStream
      filename - エンコードされたバッファの名前を指定します。null にすることができます。
      戻り値:
      エンコーダー
    • provider

      static StreamProvider provider()
      ストリームプロバイダーオブジェクトを作成します。プロバイダは、ServiceLoader.load(Class)SE メソッドを使用してロードされます。利用可能なサービスプロバイダーがない場合、このメソッドは IllegalStateException をスローします。ユーザーは、このメソッドの結果をキャッシュすることをお勧めします。
      戻り値:
      ストリームプロバイダー