1   
2   
3   
4   
5   
6   
7   
8   
9   
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  package org.apache.maven.model.io.xpp3;
20  
21  import java.io.IOException;
22  import java.io.InputStream;
23  import java.io.Reader;
24  
25  import org.apache.maven.model.InputSource;
26  import org.apache.maven.model.Model;
27  import org.codehaus.plexus.util.xml.pull.XmlPullParserException;
28  
29  
30  
31  
32  @Deprecated
33  public class MavenXpp3ReaderEx extends MavenXpp3Reader {
34  
35      public MavenXpp3ReaderEx() {
36          this(null);
37      }
38  
39      public MavenXpp3ReaderEx(ContentTransformer contentTransformer) {
40          super(contentTransformer != null ? contentTransformer::transform : null, true);
41      }
42  
43      @Override
44      public Model read(Reader reader, boolean strict, InputSource source) throws IOException, XmlPullParserException {
45          return super.read(reader, strict, source);
46      }
47  
48      @Override
49      public Model read(Reader reader, boolean strict) throws IOException, XmlPullParserException {
50          return super.read(reader, strict);
51      }
52  
53      @Override
54      public Model read(Reader reader) throws IOException, XmlPullParserException {
55          return super.read(reader);
56      }
57  
58      @Override
59      public Model read(InputStream in, boolean strict, InputSource source) throws IOException, XmlPullParserException {
60          return super.read(in, strict, source);
61      }
62  
63      @Override
64      public Model read(InputStream in, boolean strict) throws IOException, XmlPullParserException {
65          return super.read(in, strict);
66      }
67  
68      @Override
69      public Model read(InputStream in) throws IOException, XmlPullParserException {
70          return super.read(in);
71      }
72  
73      public interface ContentTransformer {
74          
75  
76  
77  
78  
79  
80  
81  
82          String transform(String source, String fieldName);
83      }
84  }