クラス
java.nio.charset.CharsetDecoderの使用
| パッケージ | 説明 | 
|---|---|
| java.io | データ・ストリーム、直列化、およびファイル・システム経由でのシステム入出力用に提供されています。 | 
| java.nio.channels | 入出力操作を実行できるエンティティ(ファイル、ソケットなど)への接続を表すチャネルや、多重化された非ブロック入出力操作用のセレクタを定義します。 | 
| java.nio.charset | byteとUnicode文字の相互変換を行うため、文字セット、デコーダ、およびエンコーダを定義します。 | 
- 
java.ioでのCharsetDecoderの使用CharsetDecoder型のパラメータを持つjava.ioのコンストラクタ コンストラクタ 説明 InputStreamReader(InputStream in, CharsetDecoder dec)与えられた文字セット・デコーダを使うInputStreamReaderを作成します。
- 
java.nio.channelsでのCharsetDecoderの使用CharsetDecoder型のパラメータを持つjava.nio.channelsのメソッド 修飾子と型 メソッド 説明 static ReaderChannels. newReader(ReadableByteChannel ch, CharsetDecoder dec, int minBufferCap)指定されたデコーダを使って指定されたチャネルからバイトをデコードするリーダーを構築します。
- 
java.nio.charsetでのCharsetDecoderの使用CharsetDecoderを返すjava.nio.charsetのメソッド 修飾子と型 メソッド 説明 abstract CharsetDecoderCharset. newDecoder()この文字セットの新しいデコーダを構築します。CharsetDecoderCharsetDecoder. onMalformedInput(CodingErrorAction newAction)不正入力エラーに対するこのデコーダのアクションを変更します。CharsetDecoderCharsetDecoder. onUnmappableCharacter(CodingErrorAction newAction)マップできない文字エラーに対する、このデコーダのアクションを変更します。CharsetDecoderCharsetDecoder. replaceWith(String newReplacement)このデコーダの代替値を変更します。CharsetDecoderCharsetDecoder. reset()このデコーダをリセットし、内部の状態をクリアします。