Code example for Reader

Methods: close

0
    /** 
     * @deprecated As of 1.4, use {@link XppDom#build(XmlPullParser)} instead 
     */ 
    public static Xpp3Dom build(Reader reader) throws Exception {
        XmlPullParser parser = new MXParser();
        parser.setInput(reader);
        try { 
            return (Xpp3Dom)XppDom.build(parser);
        } finally { 
            reader.close();
        } 
    } 
}