OSDN Git Service

Merge release/v3.122.2
[mikutoga/TogaGem.git] / src / main / java / jp / sfjp / mikutoga / bin / parser / TextDecoder.java
index 20095fb..7410bab 100644 (file)
@@ -17,10 +17,13 @@ import java.nio.charset.CodingErrorAction;
 
 /**
  * 文字デコーダー。
+ *
  * <p>あらかじめバイト長が既知であるバイトバッファを読み取り、
  * 文字列へのデコード結果を返す。
+ *
  * <p>デコード対象のバイト列が全てメモリ上に展開される必要があるので、
  * 巨大なテキストのデコードには不適当。
+ *
  * <p>入力バイト値0x00以降をデコード処理の対象から外す
  * 「ゼロチョップモード」を備える。
  * デフォルトではゼロチョップモードはオフ。
@@ -53,7 +56,7 @@ public class TextDecoder {
 
         this.decoder = decoder;
         this.decoder.reset();
-        this.decoder.onMalformedInput     (CodingErrorAction.REPORT);
+        this.decoder.onMalformedInput(     CodingErrorAction.REPORT);
         this.decoder.onUnmappableCharacter(CodingErrorAction.REPORT);
 
         return;
@@ -61,7 +64,9 @@ public class TextDecoder {
 
     /**
      * 指定されたバイト長のデコードに必要な出力バッファを用意する。
+     *
      * <p>既存バッファで足りなければ新たに確保し直す。
+     *
      * @param byteLength 入力バイト長
      * @return 出力バッファ長。(キャラクタ単位)
      */