/** * Creates a pooling Parser with the given options, using the global DocumentBuilder pool. * * @param options * the options. * @return DOMParser. */ public static DOMParser createPoolingParser(final DOMParserOptions options) { return new PoolingDOMParser(options != null ? options : DOMParserOptions.getDefault(), getDocumentBuilderPool()); }
/** * Creates a pooling Parser with the given options, which uses the given document builder pool. * * @return DOMParser. */ public static DOMParser createPoolingParser(final DOMParserOptions options, final DocumentBuilderPool pool) { return new PoolingDOMParser(options != null ? options : DOMParserOptions.getDefault(), pool != null ? pool : getDocumentBuilderPool()); }