protected XMLLoad createXMLLoad() { return new XMLLoadImpl(createXMLHelper()); }
public XMLDefaultHandler createDefaultHandler() { return (XMLDefaultHandler)makeDefaultHandler(); }
/** * @deprecated since 2.2 * The encoding will be reported by the parser using SAX 2 Locator */ @Deprecated protected String getEncoding() throws IOException { if (!is.markSupported()) is = new BufferedInputStream(is); byte[] buffer = readBuffer(); return XMLHandler.getXMLEncoding(buffer); }
inputSource.setEncoding(resource.getEncoding()); load(resource, inputSource, options); return; if (!Boolean.FALSE.equals(options.get(XMLResource.OPTION_USE_DEPRECATED_METHODS))) encoding = getEncoding(); resource.setEncoding(encoding); parser = makeParser(); handler = makeDefaultHandler(); handleErrors();
handler = makeDefaultHandler(); if (Boolean.TRUE.equals(options.get(XMLResource.OPTION_DOM_USE_NAMESPACES_IN_SCOPE))) traverseElement((Element)node, attributesProxy, handler, lexicalHandler); traverse(node, attributesProxy, handler, lexicalHandler); traverse(node, attributesProxy, handler, lexicalHandler); helper = null; handleErrors();
parser = makeParser(); handler = makeDefaultHandler(); handleErrors();
@Override public void load(XMLResource resource, InputStream inputStream, Map<?, ?> options) throws IOException { try { super.load(resource, inputStream, options); } catch (Exception e) { DiagnosticWrappedException error = new DiagnosticWrappedException(e); resource.getErrors().add(error); } } };
while (child != null) traverse(child, attributesProxy, handler, lexicalHandler); child = child.getNextSibling();
inputSource.setEncoding(resource.getEncoding()); load(resource, inputSource, options); return; if (!Boolean.FALSE.equals(options.get(XMLResource.OPTION_USE_DEPRECATED_METHODS))) encoding = getEncoding(); resource.setEncoding(encoding); parser = makeParser(); handler = makeDefaultHandler(); handleErrors();
handler = makeDefaultHandler(); if (Boolean.TRUE.equals(options.get(XMLResource.OPTION_DOM_USE_NAMESPACES_IN_SCOPE))) traverseElement((Element)node, attributesProxy, handler, lexicalHandler); traverse(node, attributesProxy, handler, lexicalHandler); traverse(node, attributesProxy, handler, lexicalHandler); helper = null; handleErrors();
parser = makeParser(); handler = makeDefaultHandler(); handleErrors();
while (child != null) traverse(child, attributesProxy, handler, lexicalHandler); child = child.getNextSibling();
protected XMLLoad createXMLLoad() { return new XMLLoadImpl(createXMLHelper()); }
/** * @deprecated since 2.2 * The encoding will be reported by the parser using SAX 2 Locator */ @Deprecated protected String getEncoding() throws IOException { if (!is.markSupported()) is = new BufferedInputStream(is); byte[] buffer = readBuffer(); return XMLHandler.getXMLEncoding(buffer); }
public XMLDefaultHandler createDefaultHandler() { return (XMLDefaultHandler)makeDefaultHandler(); }
@Override protected XMLLoad createXMLLoad(Map<?, ?> options) { if (options != null && Boolean.TRUE.equals(options.get(OPTION_SUPPRESS_XMI))) { return new XMLLoadImpl(new XMLHelperImpl(this)); } else { return super.createXMLLoad(options); } }
@Override protected XMLLoad createXMLLoad(Map<?, ?> options) { if (options != null && Boolean.TRUE.equals(options.get(OPTION_SUPPRESS_XMI))) { return new XMLLoadImpl(new XMLHelperImpl(this)); } else { return super.createXMLLoad(options); } }