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 proxy){
26 this.delegate = proxy;
33 * @param ch {@inheritDoc}
34 * @return {@inheritDoc}
35 * @throws IOException {@inheritDoc}
38 public XmlExporter putRawCh(char ch) throws IOException{
39 return this.delegate.putRawCh(ch);
44 * @param seq {@inheritDoc}
45 * @return {@inheritDoc}
46 * @throws IOException {@inheritDoc}
49 public XmlExporter putRawText(CharSequence seq) throws IOException{
50 return this.delegate.putRawText(seq);
55 * @throws IOException {@inheritDoc}
58 public void flush() throws IOException{
59 this.delegate.flush();
65 * @throws IOException {@inheritDoc}
68 public void close() throws IOException{
69 this.delegate.close();
75 * @return {@inheritDoc}
78 public boolean isBasicLatinOnlyOut(){
79 return this.delegate.isBasicLatinOnlyOut();
84 * @param bool {@inheritDoc}
87 public void setBasicLatinOnlyOut(boolean bool){
88 this.delegate.setBasicLatinOnlyOut(bool);
94 * @return {@inheritDoc}
97 public String getNewLine(){
98 return this.delegate.getNewLine();
103 * @param newLine {@inheritDoc}
104 * @throws NullPointerException {@inheritDoc}
107 public void setNewLine(String newLine) throws NullPointerException{
108 this.delegate.setNewLine(newLine);
114 * @return {@inheritDoc}
117 public String getIndentUnit(){
118 return this.delegate.getIndentUnit();
123 * @param indUnit {@inheritDoc}
124 * @throws NullPointerException {@inheritDoc}
127 public void setIndentUnit(String indUnit) throws NullPointerException{
128 this.delegate.setIndentUnit(indUnit);
136 public void pushNest(){
137 this.delegate.pushNest();
145 public void popNest(){
146 this.delegate.popNest();
152 * @return {@inheritDoc}
155 public int getIndentLevel(){
156 return this.delegate.getIndentLevel();