/** * Method read. * * @param in * @param source * @param strict * @throws IOException * @throws XmlPullParserException * @return Model */ public Model read( InputStream in, boolean strict, InputSource source ) throws IOException, XmlPullParserException { return read( ReaderFactory.newXmlReader( in ), strict, source ); } //-- Model read( InputStream, boolean, InputSource )
/** * @see ReaderFactory#newXmlReader * * @param reader * @param source * @param strict * @throws IOException * @throws XmlPullParserException * @return Model */ public Model read( Reader reader, boolean strict, InputSource source ) throws IOException, XmlPullParserException { XmlPullParser parser = addDefaultEntities ? new MXParser(EntityReplacementMap.defaultEntityReplacementMap) : new MXParser( ); parser.setInput( reader ); return read( parser, strict, source ); } //-- Model read( Reader, boolean, InputSource )
private Model read( Reader reader, boolean strict, InputSource source ) throws IOException { try { if ( source != null ) { return new MavenXpp3ReaderEx().read( reader, strict, source ); } else { return new MavenXpp3Reader().read( reader, strict ); } } catch ( XmlPullParserException e ) { throw new ModelParseException( e.getMessage(), e.getLineNumber(), e.getColumnNumber(), e ); } }
/** * Method read. * * @param in * @param source * @param strict * @throws IOException * @throws XmlPullParserException * @return Model */ public Model read( InputStream in, boolean strict, InputSource source ) throws IOException, XmlPullParserException { return read( ReaderFactory.newXmlReader( in ), strict, source ); } //-- Model read( InputStream, boolean, InputSource )
/** * @see ReaderFactory#newXmlReader * * @param reader * @param source * @param strict * @throws IOException * @throws XmlPullParserException * @return Model */ public Model read( Reader reader, boolean strict, InputSource source ) throws IOException, XmlPullParserException { XmlPullParser parser = new MXParser(); parser.setInput( reader ); initParser( parser ); return read( parser, strict, source ); } //-- Model read( Reader, boolean, InputSource )
private Model read( Reader reader, boolean strict, InputSource source ) throws IOException { try { if ( source != null ) { return new MavenXpp3ReaderEx().read( reader, strict, source ); } else { return new MavenXpp3Reader().read( reader, strict ); } } catch ( XmlPullParserException e ) { throw new ModelParseException( e.getMessage(), e.getLineNumber(), e.getColumnNumber(), e ); } }