public Document parse(File file) throws XMLPlatformException { try { return getDocumentBuilder().parse(file); } catch (SAXParseException e) { throw XMLPlatformException.xmlPlatformSAXParseException(e); } catch (SAXException e) { throw XMLPlatformException.xmlPlatformParseException(e); } catch (IOException e) { throw XMLPlatformException.xmlPlatformFileNotFoundException(file, e); } }
public Document parse(File file) throws XMLPlatformException { try { return getDocumentBuilder().parse(file); } catch (SAXParseException e) { throw XMLPlatformException.xmlPlatformSAXParseException(e); } catch (SAXException e) { throw XMLPlatformException.xmlPlatformParseException(e); } catch (IOException e) { throw XMLPlatformException.xmlPlatformFileNotFoundException(file, e); } }
public Document parse(File file) throws XMLPlatformException { try { return getDocumentBuilder().parse(file); } catch (SAXParseException e) { throw XMLPlatformException.xmlPlatformSAXParseException(e); } catch (SAXException e) { throw XMLPlatformException.xmlPlatformParseException(e); } catch (IOException e) { throw XMLPlatformException.xmlPlatformFileNotFoundException(file, e); } }
/** * Parses given file. * * @param file file to parse * @return parsed document * @throws XMLPlatformException exception occurred while parsing given file */ public Document parse(File file) throws XMLPlatformException { try { return getDocumentBuilder().parse(file); } catch (SAXParseException e) { throw XMLPlatformException.xmlPlatformSAXParseException(e); } catch (SAXException e) { throw XMLPlatformException.xmlPlatformParseException(e); } catch (IOException e) { throw XMLPlatformException.xmlPlatformFileNotFoundException(file, e); } }
/** * Parses given file. * * @param file file to parse * @return parsed document * @throws XMLPlatformException exception occurred while parsing given file */ @Override public Document parse(File file) throws XMLPlatformException { try { return getDocumentBuilder().parse(file); } catch (SAXParseException e) { throw XMLPlatformException.xmlPlatformSAXParseException(e); } catch (SAXException e) { throw XMLPlatformException.xmlPlatformParseException(e); } catch (IOException e) { throw XMLPlatformException.xmlPlatformFileNotFoundException(file, e); } }