OSDN Git Service

c1934eab46ab7018067cd6da39b232d046dce5fc
[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 proxy 委譲先
23      */
24     public ProxyXmlExporter(XmlExporter proxy){
25         super();
26         this.delegate = proxy;
27         return;
28     }
29
30
31     /**
32      * {@inheritDoc}
33      * @param ch {@inheritDoc}
34      * @return {@inheritDoc}
35      * @throws IOException {@inheritDoc}
36      */
37     @Override
38     public XmlExporter putRawCh(char ch) throws IOException{
39         return this.delegate.putRawCh(ch);
40     }
41
42     /**
43      * {@inheritDoc}
44      * @param seq {@inheritDoc}
45      * @return {@inheritDoc}
46      * @throws IOException {@inheritDoc}
47      */
48     @Override
49     public XmlExporter putRawText(CharSequence seq) throws IOException{
50         return this.delegate.putRawText(seq);
51     }
52
53     /**
54      * {@inheritDoc}
55      * @throws IOException {@inheritDoc}
56      */
57     @Override
58     public void flush() throws IOException{
59         this.delegate.flush();
60         return;
61     }
62
63     /**
64      * {@inheritDoc}
65      * @throws IOException {@inheritDoc}
66      */
67     @Override
68     public void close() throws IOException{
69         this.delegate.close();
70         return;
71     }
72
73     /**
74      * {@inheritDoc}
75      * @return {@inheritDoc}
76      */
77     @Override
78     public boolean isBasicLatinOnlyOut(){
79         return this.delegate.isBasicLatinOnlyOut();
80     }
81
82     /**
83      * {@inheritDoc}
84      * @param bool {@inheritDoc}
85      */
86     @Override
87     public void setBasicLatinOnlyOut(boolean bool){
88         this.delegate.setBasicLatinOnlyOut(bool);
89         return;
90     }
91
92     /**
93      * {@inheritDoc}
94      * @return {@inheritDoc}
95      */
96     @Override
97     public String getNewLine(){
98         return this.delegate.getNewLine();
99     }
100
101     /**
102      * {@inheritDoc}
103      * @param newLine {@inheritDoc}
104      * @throws NullPointerException {@inheritDoc}
105      */
106     @Override
107     public void setNewLine(String newLine) throws NullPointerException{
108         this.delegate.setNewLine(newLine);
109         return;
110     }
111
112     /**
113      * {@inheritDoc}
114      * @return {@inheritDoc}
115      */
116     @Override
117     public String getIndentUnit(){
118         return this.delegate.getIndentUnit();
119     }
120
121     /**
122      * {@inheritDoc}
123      * @param indUnit {@inheritDoc}
124      * @throws NullPointerException {@inheritDoc}
125      */
126     @Override
127     public void setIndentUnit(String indUnit) throws NullPointerException{
128         this.delegate.setIndentUnit(indUnit);
129         return;
130     }
131
132     /**
133      * {@inheritDoc}
134      */
135     @Override
136     public void pushNest(){
137         this.delegate.pushNest();
138         return;
139     }
140
141     /**
142      * {@inheritDoc}
143      */
144     @Override
145     public void popNest(){
146         this.delegate.popNest();
147         return;
148     }
149
150     /**
151      * {@inheritDoc}
152      * @return {@inheritDoc}
153      */
154     @Override
155     public int getIndentLevel(){
156         return this.delegate.getIndentLevel();
157     }
158
159 }