クラス
java.nio.charset.CodingErrorActionの使用
パッケージ | 説明 |
---|---|
java.nio.charset |
byteとUnicode文字の相互変換を行うため、文字セット、デコーダ、およびエンコーダを定義します。
|
-
java.nio.charsetでのCodingErrorActionの使用
CodingErrorActionとして宣言されているjava.nio.charsetのフィールド 修飾子と型 フィールド 説明 static CodingErrorAction
CodingErrorAction. IGNORE
コーディング・エラーの処理として、エラー入力を破棄してコーディング処理を再開することを示すアクションです。static CodingErrorAction
CodingErrorAction. REPLACE
コーディング・エラーの処理として、エラー入力を破棄し、出力バッファにコーダーの置換値を追加し、コーディング処理を再開することを示すアクションです。static CodingErrorAction
CodingErrorAction. REPORT
CoderResult
オブジェクトを返す方法とCharacterCodingException
をスローする方法のうち、コーディング・プロセスを実装するメソッドにとって適切な方法でコーディング・エラーを報告することを示すアクションです。CodingErrorActionを返すjava.nio.charsetのメソッド 修飾子と型 メソッド 説明 CodingErrorAction
CharsetDecoder. malformedInputAction()
不正入力エラーに対する、このデコーダの現在のアクションを返します。CodingErrorAction
CharsetEncoder. malformedInputAction()
不正入力エラーに対する、このエンコーダの現在のアクションを返します。CodingErrorAction
CharsetDecoder. unmappableCharacterAction()
マップ不可文字エラーに対する、このデコーダの現在のアクションを返します。CodingErrorAction
CharsetEncoder. unmappableCharacterAction()
マップ不可文字エラーに対する、このエンコーダの現在のアクションを返します。CodingErrorAction型のパラメータを持つjava.nio.charsetのメソッド 修飾子と型 メソッド 説明 protected void
CharsetDecoder. implOnMalformedInput(CodingErrorAction newAction)
不正入力エラーに対する、このデコーダのアクションが変更されたことを報告します。protected void
CharsetEncoder. implOnMalformedInput(CodingErrorAction newAction)
不正入力エラーに対する、このエンコーダのアクションが変更されたことを報告します。protected void
CharsetDecoder. implOnUnmappableCharacter(CodingErrorAction newAction)
マップできない文字エラーに対する、このデコーダのアクションが変更されたことを報告します。protected void
CharsetEncoder. implOnUnmappableCharacter(CodingErrorAction newAction)
マップ不可文字エラーに対する、このエンコーダのアクションが変更されたことを報告します。CharsetDecoder
CharsetDecoder. onMalformedInput(CodingErrorAction newAction)
不正入力エラーに対するこのデコーダのアクションを変更します。CharsetEncoder
CharsetEncoder. onMalformedInput(CodingErrorAction newAction)
不正入力エラーに対する、このエンコーダのアクションを変更します。CharsetDecoder
CharsetDecoder. onUnmappableCharacter(CodingErrorAction newAction)
マップできない文字エラーに対する、このデコーダのアクションを変更します。CharsetEncoder
CharsetEncoder. onUnmappableCharacter(CodingErrorAction newAction)
マップ不可文字エラーに対する、このエンコーダのアクションを変更します。