/** * Returns a new copy of a Document implementation. This will return an <code>IPortalDocument * </code> implementation. * * @return an empty org.w3c.dom.Document implementation */ public static Document getThreadDocument() { return getThreadDocumentBuilder().newDocument(); }
/** * Returns a new copy of a Document implementation. This will return an <code>IPortalDocument * </code> implementation. * * @return an empty org.w3c.dom.Document implementation */ public static Document getThreadDocument() { return getThreadDocumentBuilder().newDocument(); }
public static Document getDocumentFromStream(InputStream stream, String publicId) throws IOException, SAXException { DocumentBuilder builder = getThreadDocumentBuilder(); InputSource source = new InputSource(stream); source.setPublicId(publicId); Document doc = builder.parse(source); return doc; }
public static Document getDocumentFromStream(InputStream stream, String publicId) throws IOException, SAXException { DocumentBuilder builder = getThreadDocumentBuilder(); InputSource source = new InputSource(stream); source.setPublicId(publicId); Document doc = builder.parse(source); return doc; }
public static Document getDocumentFromStream( InputStream stream, EntityResolver er, String publicId) throws IOException, SAXException { DocumentBuilder builder = getThreadDocumentBuilder(); builder.setEntityResolver(er); InputSource source = new InputSource(stream); source.setPublicId(publicId); Document doc = builder.parse(source); return doc; }
public static Document getDocumentFromStream( InputStream stream, EntityResolver er, String publicId) throws IOException, SAXException { DocumentBuilder builder = getThreadDocumentBuilder(); builder.setEntityResolver(er); InputSource source = new InputSource(stream); source.setPublicId(publicId); Document doc = builder.parse(source); return doc; }