public void load(InputStream source, boolean outOfSync) { try { fLoaded = true; SAXParserWrapper parser = new SAXParserWrapper(); parser.parse(source, createDocumentHandler(this, true)); } catch (SAXException e) { fLoaded = false; } catch (IOException e) { } catch (ParserConfigurationException e) { } catch (FactoryConfigurationError e) { } }
@Override protected void finalize() throws Throwable { super.finalize(); dispose(); }
public void adjustOffsets(IDocument document) { try { SAXParserWrapper parser = new SAXParserWrapper(); parser.parse(getInputStream(document), createDocumentHandler(this, false)); } catch (SAXException e) { } catch (IOException e) { } catch (ParserConfigurationException e) { } catch (FactoryConfigurationError e) { } } }
protected void finalize() throws Throwable { super.finalize(); dispose(); }
public static void parse(IFile file, XMLErrorReporter reporter) { InputStream stream = null; SAXParserWrapper parser = null; try { parser = new SAXParserWrapper(); stream = new BufferedInputStream(file.getContents()); parser.parse(stream, reporter); } catch (CoreException e) { } catch (SAXException e) { } catch (IOException e) { } catch (ParserConfigurationException e) { } finally { try { if (stream != null) stream.close(); } catch (IOException e1) { } } }
public static void parse(IFile file, XMLErrorReporter reporter) { InputStream stream = null; SAXParserWrapper parser = null; try { parser = new SAXParserWrapper(); stream = new BufferedInputStream(file.getContents()); parser.parse(stream, reporter); } catch (CoreException e) { } catch (SAXException e) { } catch (IOException e) { } catch (ParserConfigurationException e) { } finally { try { if (stream != null) stream.close(); } catch (IOException e1) { } } }
@Override public void adjustOffsets(IDocument document) { try { SAXParserWrapper parser = new SAXParserWrapper(); parser.parse(getInputStream(document), createDocumentHandler(this, false)); } catch (SAXException e) { } catch (IOException e) { } catch (ParserConfigurationException e) { } catch (FactoryConfigurationError e) { } }
@Override public void load(InputStream source, boolean outOfSync) { try { fLoaded = true; status = new Status(IStatus.OK, PDECore.PLUGIN_ID, null); SAXParserWrapper parser = new SAXParserWrapper(); parser.parse(source, createDocumentHandler(this, true)); } catch (SAXException e) { fLoaded = false; status = new Status(IStatus.ERROR, PDECore.PLUGIN_ID, e.getMessage(), e); } catch (IOException e) { fLoaded = false; } catch (ParserConfigurationException e) { fLoaded = false; } catch (FactoryConfigurationError e) { fLoaded = false; } }
public static void parse(IFile file, XMLErrorReporter reporter) { InputStream stream = null; SAXParserWrapper parser = null; try { parser = new SAXParserWrapper(); stream = new BufferedInputStream(file.getContents()); parser.parse(stream, reporter); } catch (CoreException e) { } catch (SAXException e) { } catch (IOException e) { } catch (ParserConfigurationException e) { } finally { try { if (stream != null) stream.close(); } catch (IOException e1) { } } } }
public void load(InputStream stream) { try { SAXParserWrapper parser = new SAXParserWrapper(); XMLDefaultHandler handler = new XMLDefaultHandler(fAbbreviated); parser.parse(stream, handler); traverseDocumentTree(handler.getDocumentElement()); } catch (SAXException e) { // ignore parse errors - 'loaded' will be false anyway } catch (Exception e) { PDECore.logException(e); } }
public void load(InputStream stream) { try { SAXParserWrapper parser = new SAXParserWrapper(); XMLDefaultHandler handler = new XMLDefaultHandler(fAbbreviated); parser.parse(stream, handler); traverseDocumentTree(handler.getDocumentElement()); } catch (SAXException e) { // ignore parse errors - 'loaded' will be false anyway } catch (IOException e) { PDECore.logException(e, "IOException reading following URL: " + fURL); //$NON-NLS-1$ } catch (Exception e) { PDECore.logException(e); } }
connection = getURLConnection(url); input = connection.getInputStream(); SAXParserWrapper parser = new SAXParserWrapper(); parser.parse(input, handler); } catch (MalformedURLException e) {
public static void parseURL(URL url, DefaultHandler handler) { InputStream input = null; try { input = getInputStream(url); SAXParserWrapper parser = new SAXParserWrapper(); parser.parse(input, handler); } catch (MalformedURLException e) { // Ignore // Caused when URL is null // This occurs when the extension point schema is first // created. } catch (IOException e) { PDECore.logException(e); } catch (SAXException e) { // Ignore parse errors // Handler may send a SAX Exception to prematurely abort parsing // in order to save execution time. This is not an error } catch (ParserConfigurationException e) { PDECore.logException(e); } catch (FactoryConfigurationError e) { PDECore.logException(e); } finally { try { if (input != null) input.close(); } catch (IOException e1) { } } }