OSDN Git Service

Appendable対応
[mikutoga/TogaGem.git] / src / main / java / jp / sourceforge / mikutoga / xml / ProxyXmlExporter.java
index c1934ea..20af5f1 100644 (file)
@@ -19,11 +19,11 @@ public class ProxyXmlExporter extends AbstractXmlExporter{
 
     /**
      * コンストラクタ。
-     * @param proxy 委譲先
+     * @param delegate 委譲先
      */
-    public ProxyXmlExporter(XmlExporter proxy){
+    public ProxyXmlExporter(XmlExporter delegate){
         super();
-        this.delegate = proxy;
+        this.delegate = delegate;
         return;
     }
 
@@ -35,8 +35,8 @@ public class ProxyXmlExporter extends AbstractXmlExporter{
      * @throws IOException {@inheritDoc}
      */
     @Override
-    public XmlExporter putRawCh(char ch) throws IOException{
-        return this.delegate.putRawCh(ch);
+    public Appendable append(char ch) throws IOException{
+        return this.delegate.append(ch);
     }
 
     /**
@@ -46,8 +46,22 @@ public class ProxyXmlExporter extends AbstractXmlExporter{
      * @throws IOException {@inheritDoc}
      */
     @Override
-    public XmlExporter putRawText(CharSequence seq) throws IOException{
-        return this.delegate.putRawText(seq);
+    public Appendable append(CharSequence seq) throws IOException{
+        return this.delegate.append(seq);
+    }
+
+    /**
+     * {@inheritDoc}
+     * @param seq {@inheritDoc}
+     * @param start {@inheritDoc}
+     * @param end {@inheritDoc}
+     * @return {@inheritDoc}
+     * @throws IOException {@inheritDoc}
+     */
+    @Override
+    public Appendable append(CharSequence seq, int start, int end)
+            throws IOException{
+        return this.delegate.append(seq, start, end);
     }
 
     /**
@@ -72,6 +86,28 @@ public class ProxyXmlExporter extends AbstractXmlExporter{
 
     /**
      * {@inheritDoc}
+     * @param ch {@inheritDoc}
+     * @return {@inheritDoc}
+     * @throws IOException {@inheritDoc}
+     */
+    @Override
+    public XmlExporter putRawCh(char ch) throws IOException{
+        return this.delegate.putRawCh(ch);
+    }
+
+    /**
+     * {@inheritDoc}
+     * @param seq {@inheritDoc}
+     * @return {@inheritDoc}
+     * @throws IOException {@inheritDoc}
+     */
+    @Override
+    public XmlExporter putRawText(CharSequence seq) throws IOException{
+        return this.delegate.putRawText(seq);
+    }
+
+    /**
+     * {@inheritDoc}
      * @return {@inheritDoc}
      */
     @Override