src/main/java/org/dom4j/io/XPPPacketReader.java
public Document read(File file) throws DocumentException, IOException,
            XmlPullParserException {
        String systemID = file.getAbsolutePath();
        return read(new BufferedReader(new FileReader(file)), systemID);
    }
public Document read(File file) throws DocumentException, IOException,
            XmlPullParserException {
        String systemID = file.getAbsolutePath();
        return read(new BufferedReader(new FileReader(file)), systemID);
    }
public Document read ( File file ) throws DocumentException , IOException , XmlPullParserException { String systemID = file . getAbsolutePath ( ) ; return read ( new BufferedReader ( new FileReader ( file ) ) , systemID ) ; }
<p>
Reads a Document from the given <code>File</code>
</p>

@param file
is the <code>File</code> to read from.
@return the newly created Document instance
@throws DocumentException
if an error occurs during parsing.
@throws java.net.MalformedURLException
if a URL could not be made for the given File
<p > Reads a Document from the given <code > File< / code > < / p >