OSDN Git Service

20af5f1dbd298b3ac11b18ee1abc499ffe4b6c19
[mikutoga/TogaGem.git] / src / main / java / jp / sourceforge / mikutoga / xml / ProxyXmlExporter.java
1 /*
2  * proxy xml exporter
3  *
4  * License : The MIT License
5  * Copyright(c) 2013 MikuToga Partners
6  */
7
8 package jp.sourceforge.mikutoga.xml;
9
10 import java.io.IOException;
11
12 /**
13  * 委譲型XMLエクスポータ。
14  */
15 public class ProxyXmlExporter extends AbstractXmlExporter{
16
17     private final XmlExporter delegate;
18
19
20     /**
21      * コンストラクタ。
22      * @param delegate 委譲先
23      */
24     public ProxyXmlExporter(XmlExporter delegate){
25         super();
26         this.delegate = delegate;
27         return;
28     }
29
30
31     /**
32      * {@inheritDoc}
33      * @param ch {@inheritDoc}
34      * @return {@inheritDoc}
35      * @throws IOException {@inheritDoc}
36      */
37     @Override
38     public Appendable append(char ch) throws IOException{
39         return this.delegate.append(ch);
40     }
41
42     /**
43      * {@inheritDoc}
44      * @param seq {@inheritDoc}
45      * @return {@inheritDoc}
46      * @throws IOException {@inheritDoc}
47      */
48     @Override
49     public Appendable append(CharSequence seq) throws IOException{
50         return this.delegate.append(seq);
51     }
52
53     /**
54      * {@inheritDoc}
55      * @param seq {@inheritDoc}
56      * @param start {@inheritDoc}
57      * @param end {@inheritDoc}
58      * @return {@inheritDoc}
59      * @throws IOException {@inheritDoc}
60      */
61     @Override
62     public Appendable append(CharSequence seq, int start, int end)
63             throws IOException{
64         return this.delegate.append(seq, start, end);
65     }
66
67     /**
68      * {@inheritDoc}
69      * @throws IOException {@inheritDoc}
70      */
71     @Override
72     public void flush() throws IOException{
73         this.delegate.flush();
74         return;
75     }
76
77     /**
78      * {@inheritDoc}
79      * @throws IOException {@inheritDoc}
80      */
81     @Override
82     public void close() throws IOException{
83         this.delegate.close();
84         return;
85     }
86
87     /**
88      * {@inheritDoc}
89      * @param ch {@inheritDoc}
90      * @return {@inheritDoc}
91      * @throws IOException {@inheritDoc}
92      */
93     @Override
94     public XmlExporter putRawCh(char ch) throws IOException{
95         return this.delegate.putRawCh(ch);
96     }
97
98     /**
99      * {@inheritDoc}
100      * @param seq {@inheritDoc}
101      * @return {@inheritDoc}
102      * @throws IOException {@inheritDoc}
103      */
104     @Override
105     public XmlExporter putRawText(CharSequence seq) throws IOException{
106         return this.delegate.putRawText(seq);
107     }
108
109     /**
110      * {@inheritDoc}
111      * @return {@inheritDoc}
112      */
113     @Override
114     public boolean isBasicLatinOnlyOut(){
115         return this.delegate.isBasicLatinOnlyOut();
116     }
117
118     /**
119      * {@inheritDoc}
120      * @param bool {@inheritDoc}
121      */
122     @Override
123     public void setBasicLatinOnlyOut(boolean bool){
124         this.delegate.setBasicLatinOnlyOut(bool);
125         return;
126     }
127
128     /**
129      * {@inheritDoc}
130      * @return {@inheritDoc}
131      */
132     @Override
133     public String getNewLine(){
134         return this.delegate.getNewLine();
135     }
136
137     /**
138      * {@inheritDoc}
139      * @param newLine {@inheritDoc}
140      * @throws NullPointerException {@inheritDoc}
141      */
142     @Override
143     public void setNewLine(String newLine) throws NullPointerException{
144         this.delegate.setNewLine(newLine);
145         return;
146     }
147
148     /**
149      * {@inheritDoc}
150      * @return {@inheritDoc}
151      */
152     @Override
153     public String getIndentUnit(){
154         return this.delegate.getIndentUnit();
155     }
156
157     /**
158      * {@inheritDoc}
159      * @param indUnit {@inheritDoc}
160      * @throws NullPointerException {@inheritDoc}
161      */
162     @Override
163     public void setIndentUnit(String indUnit) throws NullPointerException{
164         this.delegate.setIndentUnit(indUnit);
165         return;
166     }
167
168     /**
169      * {@inheritDoc}
170      */
171     @Override
172     public void pushNest(){
173         this.delegate.pushNest();
174         return;
175     }
176
177     /**
178      * {@inheritDoc}
179      */
180     @Override
181     public void popNest(){
182         this.delegate.popNest();
183         return;
184     }
185
186     /**
187      * {@inheritDoc}
188      * @return {@inheritDoc}
189      */
190     @Override
191     public int getIndentLevel(){
192         return this.delegate.getIndentLevel();
193     }
194
195 }