-/*\r
- * abstract content builder\r
- *\r
- * Copyright(c) 2009 olyutorskii\r
- * $Id: ContentBuilder.java 1001 2010-03-15 12:09:35Z olyutorskii $\r
- */\r
-\r
-package jp.sourceforge.jindolf.parser;\r
-\r
-import java.nio.charset.CharsetDecoder;\r
-\r
-/**\r
- * {@link DecodedContent}取得用抽象デコードハンドラ。\r
- */\r
-public abstract class ContentBuilder implements DecodeHandler{\r
-\r
- /** 文字列内容。 */\r
- protected DecodedContent content;\r
-\r
- /**\r
- * コンストラクタ。\r
- * 長さ0で空の{@link DecodedContent}がセットされる。\r
- * @param capacity 初期容量\r
- * @throws NegativeArraySizeException 容量指定が負。\r
- */\r
- protected ContentBuilder(int capacity) throws NegativeArraySizeException{\r
- super();\r
- this.content = new DecodedContent(capacity);\r
- return;\r
- }\r
-\r
- /**\r
- * デコード処理の初期化。\r
- */\r
- protected void init(){\r
- return;\r
- }\r
-\r
- /**\r
- * エラー情報をフラッシュする。\r
- */\r
- protected void flushError(){\r
- return;\r
- }\r
-\r
- /**\r
- * {@inheritDoc}\r
- * @param decoder {@inheritDoc}\r
- * @throws DecodeException {@inheritDoc}\r
- */\r
- public void startDecoding(CharsetDecoder decoder)\r
- throws DecodeException{\r
- init();\r
- return;\r
- }\r
-\r
- /**\r
- * {@inheritDoc}\r
- * @throws DecodeException {@inheritDoc}\r
- */\r
- public void endDecoding()\r
- throws DecodeException{\r
- flushError();\r
- return;\r
- }\r
-\r
- /**\r
- * デコード結果の{@link DecodedContent}を取得する。\r
- * @return デコード結果文字列\r
- */\r
- public DecodedContent getContent(){\r
- return this.content;\r
- }\r
-\r
-}\r
+/*
+ * abstract content builder
+ *
+ * License : The MIT License
+ * Copyright(c) 2009 olyutorskii
+ */
+
+package jp.sourceforge.jindolf.parser;
+
+import java.nio.charset.CharsetDecoder;
+
+/**
+ * {@link DecodedContent}取得用抽象デコードハンドラ。
+ */
+public abstract class ContentBuilder implements DecodeHandler{
+
+ /** 文字列内容。 */
+ private final DecodedContent content;
+
+
+ /**
+ * コンストラクタ。
+ * 長さ0で空の{@link DecodedContent}がセットされる。
+ * @param capacity 初期容量
+ * @throws NegativeArraySizeException 容量指定が負。
+ */
+ protected ContentBuilder(int capacity) throws NegativeArraySizeException{
+ super();
+ this.content = new DecodedContent(capacity);
+ return;
+ }
+
+ /**
+ * デコード処理の初期化。
+ */
+ protected void init(){
+ return;
+ }
+
+ /**
+ * エラー情報をフラッシュする。
+ */
+ protected void flushError(){
+ return;
+ }
+
+ /**
+ * {@inheritDoc}
+ * @param decoder {@inheritDoc}
+ * @throws DecodeException {@inheritDoc}
+ */
+ @Override
+ public void startDecoding(CharsetDecoder decoder)
+ throws DecodeException{
+ init();
+ return;
+ }
+
+ /**
+ * {@inheritDoc}
+ * @throws DecodeException {@inheritDoc}
+ */
+ @Override
+ public void endDecoding()
+ throws DecodeException{
+ flushError();
+ return;
+ }
+
+ /**
+ * デコード結果の{@link DecodedContent}を取得する。
+ * @return デコード結果文字列
+ */
+ public DecodedContent getContent(){
+ return this.content;
+ }
+
+}