/** * Creates a new DOMParser. * This method shall be used by dependend classes, * it will delegate to createPoolingParser() methods, so it uses the fastest aproach. * * @param options * the options. * @return DOMParser. */ public static DOMParser createNew(final DOMParserOptions options) { return createPoolingParser(options); }
/** * Creates a pooling Parser with default options and using the global DocumentBuilder pool. * * @return DOMParser. */ public static DOMParser createPoolingParser() { return createPoolingParser(null); }
/** * Creates a new DOMParser. * This method shall be used by dependend classes, * it will delegate to createPoolingParser() methods, so it uses the fastest approach. * * @return DOMParser. */ public static DOMParser createNew() { return createPoolingParser(); }