4 * License : The MIT License
5 * Copyright(c) 2013 MikuToga Partners
8 package jp.sourceforge.mikutoga.xml;
10 import java.io.IOException;
15 public class ProxyXmlExporter extends AbstractXmlExporter{
17 private final XmlExporter delegate;
24 public ProxyXmlExporter(XmlExporter delegate){
26 this.delegate = delegate;
33 * @param ch {@inheritDoc}
34 * @return {@inheritDoc}
35 * @throws IOException {@inheritDoc}
38 public Appendable append(char ch) throws IOException{
39 return this.delegate.append(ch);
44 * @param seq {@inheritDoc}
45 * @return {@inheritDoc}
46 * @throws IOException {@inheritDoc}
49 public Appendable append(CharSequence seq) throws IOException{
50 return this.delegate.append(seq);
55 * @param seq {@inheritDoc}
56 * @param start {@inheritDoc}
57 * @param end {@inheritDoc}
58 * @return {@inheritDoc}
59 * @throws IOException {@inheritDoc}
62 public Appendable append(CharSequence seq, int start, int end)
64 return this.delegate.append(seq, start, end);
69 * @throws IOException {@inheritDoc}
72 public void flush() throws IOException{
73 this.delegate.flush();
79 * @throws IOException {@inheritDoc}
82 public void close() throws IOException{
83 this.delegate.close();
89 * @param ch {@inheritDoc}
90 * @return {@inheritDoc}
91 * @throws IOException {@inheritDoc}
94 public XmlExporter putRawCh(char ch) throws IOException{
95 return this.delegate.putRawCh(ch);
100 * @param seq {@inheritDoc}
101 * @return {@inheritDoc}
102 * @throws IOException {@inheritDoc}
105 public XmlExporter putRawText(CharSequence seq) throws IOException{
106 return this.delegate.putRawText(seq);
111 * @return {@inheritDoc}
114 public boolean isBasicLatinOnlyOut(){
115 return this.delegate.isBasicLatinOnlyOut();
120 * @param bool {@inheritDoc}
123 public void setBasicLatinOnlyOut(boolean bool){
124 this.delegate.setBasicLatinOnlyOut(bool);
130 * @return {@inheritDoc}
133 public String getNewLine(){
134 return this.delegate.getNewLine();
139 * @param newLine {@inheritDoc}
140 * @throws NullPointerException {@inheritDoc}
143 public void setNewLine(String newLine) throws NullPointerException{
144 this.delegate.setNewLine(newLine);
150 * @return {@inheritDoc}
153 public String getIndentUnit(){
154 return this.delegate.getIndentUnit();
159 * @param indUnit {@inheritDoc}
160 * @throws NullPointerException {@inheritDoc}
163 public void setIndentUnit(String indUnit) throws NullPointerException{
164 this.delegate.setIndentUnit(indUnit);
172 public void pushNest(){
173 this.delegate.pushNest();
181 public void popNest(){
182 this.delegate.popNest();
188 * @return {@inheritDoc}
191 public int getIndentLevel(){
192 return this.delegate.getIndentLevel();