src/main/java/org/dom4j/io/XPPPacketReader.java
public Document read(InputStream in, String systemID)
            throws DocumentException, IOException, XmlPullParserException {
        return read(createReader(in), systemID);
    }
public Document read(InputStream in, String systemID)
            throws DocumentException, IOException, XmlPullParserException {
        return read(createReader(in), systemID);
    }
<p>
Reads a Document from the given stream
</p>

@param in
<code>InputStream</code> to read from.
@param systemID
is the URI for the input
@return the newly created Document instance
@throws DocumentException
if an error occurs during parsing.