View Javadoc

1   package org.codehaus.plexus.util.xml.pull;
2   
3   /*
4    * Licensed to the Apache Software Foundation (ASF) under one
5    * or more contributor license agreements.  See the NOTICE file
6    * distributed with this work for additional information
7    * regarding copyright ownership.  The ASF licenses this file
8    * to you under the Apache License, Version 2.0 (the
9    * "License"); you may not use this file except in compliance
10   * with the License.  You may obtain a copy of the License at
11   *
12   *  http://www.apache.org/licenses/LICENSE-2.0
13   *
14   * Unless required by applicable law or agreed to in writing,
15   * software distributed under the License is distributed on an
16   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17   * KIND, either express or implied.  See the License for the
18   * specific language governing permissions and limitations
19   * under the License.
20   */
21  
22  import java.io.IOException;
23  import java.io.OutputStream;
24  import java.io.Writer;
25  
26  public class MXSerializer
27      implements XmlSerializer
28  {
29      private Writer output;
30  
31      public void setOutput( Writer writer )
32      {
33          output = writer;
34      }
35  
36      public XmlSerializer attribute( String namespace, String name, String value )
37          throws IOException, IllegalArgumentException, IllegalStateException
38      {
39          // TODO Auto-generated method stub
40          return null;
41      }
42  
43      public void cdsect( String text )
44          throws IOException, IllegalArgumentException, IllegalStateException
45      {
46          // TODO Auto-generated method stub
47  
48      }
49  
50      public void comment( String text )
51          throws IOException, IllegalArgumentException, IllegalStateException
52      {
53          // TODO Auto-generated method stub
54  
55      }
56  
57      public void docdecl( String text )
58          throws IOException, IllegalArgumentException, IllegalStateException
59      {
60          // TODO Auto-generated method stub
61  
62      }
63  
64      public void endDocument()
65          throws IOException, IllegalArgumentException, IllegalStateException
66      {
67          // TODO Auto-generated method stub
68  
69      }
70  
71      public XmlSerializer endTag( String namespace, String name )
72          throws IOException, IllegalArgumentException, IllegalStateException
73      {
74          // TODO Auto-generated method stub
75          return null;
76      }
77  
78      public void entityRef( String text )
79          throws IOException, IllegalArgumentException, IllegalStateException
80      {
81          // TODO Auto-generated method stub
82  
83      }
84  
85      public void flush()
86          throws IOException
87      {
88          // TODO Auto-generated method stub
89  
90      }
91  
92      public int getDepth()
93      {
94          // TODO Auto-generated method stub
95          return 0;
96      }
97  
98      public boolean getFeature( String name )
99      {
100         // TODO Auto-generated method stub
101         return false;
102     }
103 
104     public String getName()
105     {
106         // TODO Auto-generated method stub
107         return null;
108     }
109 
110     public String getNamespace()
111     {
112         // TODO Auto-generated method stub
113         return null;
114     }
115 
116     public String getPrefix( String namespace, boolean generatePrefix )
117         throws IllegalArgumentException
118     {
119         // TODO Auto-generated method stub
120         return null;
121     }
122 
123     public Object getProperty( String name )
124     {
125         // TODO Auto-generated method stub
126         return null;
127     }
128 
129     public void ignorableWhitespace( String text )
130         throws IOException, IllegalArgumentException, IllegalStateException
131     {
132         // TODO Auto-generated method stub
133 
134     }
135 
136     public void processingInstruction( String text )
137         throws IOException, IllegalArgumentException, IllegalStateException
138     {
139         // TODO Auto-generated method stub
140 
141     }
142 
143     public void setFeature( String name, boolean state )
144         throws IllegalArgumentException, IllegalStateException
145     {
146         // TODO Auto-generated method stub
147 
148     }
149 
150     public void setOutput( OutputStream os, String encoding )
151         throws IOException, IllegalArgumentException, IllegalStateException
152     {
153         // TODO Auto-generated method stub
154 
155     }
156 
157     public void setPrefix( String prefix, String namespace )
158         throws IOException, IllegalArgumentException, IllegalStateException
159     {
160         // TODO Auto-generated method stub
161 
162     }
163 
164     public void setProperty( String name, Object value )
165         throws IllegalArgumentException, IllegalStateException
166     {
167         // TODO Auto-generated method stub
168 
169     }
170 
171     public void startDocument( String encoding, Boolean standalone )
172         throws IOException, IllegalArgumentException, IllegalStateException
173     {
174         // TODO Auto-generated method stub
175 
176     }
177 
178     public XmlSerializer startTag( String namespace, String name )
179         throws IOException, IllegalArgumentException, IllegalStateException
180     {
181         output.write( name );
182 
183         return this;
184     }
185 
186     public XmlSerializer text( String text )
187         throws IOException, IllegalArgumentException, IllegalStateException
188     {
189         // TODO Auto-generated method stub
190         return null;
191     }
192 
193     public XmlSerializer text( char[] buf, int start, int len )
194         throws IOException, IllegalArgumentException, IllegalStateException
195     {
196         // TODO Auto-generated method stub
197         return null;
198     }
199 }