View Javadoc
1   /*
2    * Licensed to the Apache Software Foundation (ASF) under one
3    * or more contributor license agreements.  See the NOTICE file
4    * distributed with this work for additional information
5    * regarding copyright ownership.  The ASF licenses this file
6    * to you under the Apache License, Version 2.0 (the
7    * "License"); you may not use this file except in compliance
8    * with the License.  You may obtain a copy of the License at
9    *
10   *   http://www.apache.org/licenses/LICENSE-2.0
11   *
12   * Unless required by applicable law or agreed to in writing,
13   * software distributed under the License is distributed on an
14   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15   * KIND, either express or implied.  See the License for the
16   * specific language governing permissions and limitations
17   * under the License.
18   */
19  package org.apache.maven.model.io.xpp3;
20  
21  import java.io.IOException;
22  import java.io.OutputStream;
23  import java.io.Writer;
24  
25  import org.apache.maven.model.InputLocation;
26  import org.apache.maven.model.Model;
27  
28  /**
29   * @deprecated Use MavenStaxWriter instead
30   */
31  @Deprecated
32  public class MavenXpp3WriterEx extends MavenXpp3Writer {
33  
34      // -----------/
35      // - Methods -/
36      // -----------/
37  
38      public MavenXpp3WriterEx() {
39          super(true);
40      }
41  
42      /**
43       * Method setFileComment.
44       *
45       * @param fileComment a fileComment object.
46       */
47      public void setFileComment(String fileComment) {
48          super.setFileComment(fileComment);
49      } // -- void setFileComment( String )
50  
51      /**
52       * Method setStringFormatter.
53       *
54       * @param stringFormatter
55       */
56      public void setStringFormatter(InputLocation.StringFormatter stringFormatter) {
57          super.setStringFormatter(stringFormatter);
58      } // -- void setStringFormatter( InputLocation.StringFormatter )
59  
60      /**
61       * Method write.
62       *
63       * @param writer a writer object.
64       * @param model a model object.
65       * @throws IOException java.io.IOException if any.
66       */
67      public void write(Writer writer, Model model) throws IOException {
68          super.write(writer, model);
69      } // -- void write( Writer, Model )
70  
71      /**
72       * Method write.
73       *
74       * @param stream a stream object.
75       * @param model a model object.
76       * @throws IOException java.io.IOException if any.
77       */
78      public void write(OutputStream stream, Model model) throws IOException {
79          super.write(stream, model);
80      } // -- void write( OutputStream, Model )
81  }