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      @Override
48      public void setFileComment(String fileComment) {
49          super.setFileComment(fileComment);
50      } // -- void setFileComment( String )
51  
52      /**
53       * Method setStringFormatter.
54       *
55       * @param stringFormatter
56       */
57      @Override
58      public void setStringFormatter(InputLocation.StringFormatter stringFormatter) {
59          super.setStringFormatter(stringFormatter);
60      } // -- void setStringFormatter( InputLocation.StringFormatter )
61  
62      /**
63       * Method write.
64       *
65       * @param writer a writer object.
66       * @param model a model object.
67       * @throws IOException java.io.IOException if any.
68       */
69      @Override
70      public void write(Writer writer, Model model) throws IOException {
71          super.write(writer, model);
72      } // -- void write( Writer, Model )
73  
74      /**
75       * Method write.
76       *
77       * @param stream a stream object.
78       * @param model a model object.
79       * @throws IOException java.io.IOException if any.
80       */
81      @Override
82      public void write(OutputStream stream, Model model) throws IOException {
83          super.write(stream, model);
84      } // -- void write( OutputStream, Model )
85  }