クラス
java.nio.charset.CharacterCodingExceptionの使用
-
CharacterCodingExceptionを使用しているパッケージ パッケージ 説明 java.nio.charset byteとUnicode文字の相互変換を行うため、文字セット、デコーダ、およびエンコーダを定義します。 -
-
java.nio.charsetでのCharacterCodingExceptionの使用
java.nio.charsetでのCharacterCodingExceptionのサブクラス 修飾子と型 クラス 説明 class
MalformedInputException
入力バイト・シーケンスが指定文字セットにとって正当でない場合、または入力文字シーケンスが16ビットの正規Unicodeシーケンスでない場合にスローされるチェック例外です。class
UnmappableCharacterException
入力文字(またはバイト)シーケンスは有効だが出力バイト(または文字)シーケンスにマップできない場合にスローされるチェック例外です。CharacterCodingExceptionをスローするjava.nio.charsetのメソッド 修飾子と型 メソッド 説明 CharBuffer
CharsetDecoder. decode(ByteBuffer in)
単一の入力byteバッファのコンテンツを新しく割り当てられた文字バッファ内にデコードする簡易メソッドです。ByteBuffer
CharsetEncoder. encode(CharBuffer in)
単一の入力文字バッファのコンテンツを新しく割り当てられたbyteバッファ内にエンコードする簡易メソッドです。void
CoderResult. throwException()
このオブジェクトが示す結果に応じて例外をスローします。
-