public Document read(Reader reader) throws DocumentException, IOException,
            XmlPullParserException {
        getXPPParser().setInput(reader);
        return parseDocument();
    }
public Document read(Reader reader) throws DocumentException, IOException,
            XmlPullParserException {
        getXPPParser().setInput(reader);
        return parseDocument();
    }
public Document read ( Reader reader ) throws DocumentException , IOException , XmlPullParserException { getXPPParser ( ) . setInput ( reader ) ; return parseDocument ( ) ; }
<p>
Reads a Document from the given <code>Reader</code>
</p>

@param reader
is the reader for the input
@return the newly created Document instance
@throws DocumentException
if an error occurs during parsing.
<p > Reads a Document from the given <code > Reader< / code > < / p >