/** * Parse the content of the given file as an XML document * and return a new DOM {@link Document} object. * An <code>IllegalArgumentException</code> is thrown if the * <code>File</code> is <code>null</code> null. * * @param f The file containing the XML to parse. * @exception IOException If any IO errors occur. * @exception SAXException If any parse errors occur. * @see org.xml.sax.DocumentHandler * @return A new DOM Document object. */ public Document parse(File f) throws SAXException, IOException { if (f == null) { throw new IllegalArgumentException("File cannot be null"); } String escapedURI = FilePathToURI.filepath2URI(f.getAbsolutePath()); if (DEBUG) { System.out.println("Escaped URI = " + escapedURI); } InputSource in = new InputSource(escapedURI); return parse(in); }
/** * Parse the content of the file specified as XML using the * specified {@link org.xml.sax.helpers.DefaultHandler}. * * @param f The file containing the XML to parse * @param dh The SAX DefaultHandler to use. * * @throws IllegalArgumentException If the File object is null. * @throws IOException If any IO errors occur. * @throws SAXException If any SAX errors occur during processing. * * @see org.xml.sax.DocumentHandler */ public void parse(File f, DefaultHandler dh) throws SAXException, IOException { if (f == null) { throw new IllegalArgumentException("File cannot be null"); } String escapedURI = FilePathToURI.filepath2URI(f.getAbsolutePath()); if (DEBUG) { System.out.println("Escaped URI = " + escapedURI); } InputSource input = new InputSource(escapedURI); this.parse(input, dh); }
/** * Parse the content of the file specified as XML using the * specified {@link org.xml.sax.HandlerBase}. * <i> Use of the DefaultHandler version of this method is recommended as * the HandlerBase class has been deprecated in SAX 2.0</i> * * @param f The file containing the XML to parse * @param hb The SAX HandlerBase to use. * * @throws IllegalArgumentException If the File object is null. * @throws IOException If any IO errors occur. * @throws SAXException If any SAX errors occur during processing. * * @see org.xml.sax.DocumentHandler */ public void parse(File f, HandlerBase hb) throws SAXException, IOException { if (f == null) { throw new IllegalArgumentException("File cannot be null"); } String escapedURI = FilePathToURI.filepath2URI(f.getAbsolutePath()); if (DEBUG) { System.out.println("Escaped URI = " + escapedURI); } InputSource input = new InputSource(escapedURI); this.parse(input, hb); }
/** * Parse the content of the file specified as XML using the * specified {@link org.xml.sax.HandlerBase}. * <i> Use of the DefaultHandler version of this method is recommended as * the HandlerBase class has been deprecated in SAX 2.0</i> * * @param f The file containing the XML to parse * @param hb The SAX HandlerBase to use. * * @throws IllegalArgumentException If the File object is null. * @throws IOException If any IO errors occur. * @throws SAXException If any SAX errors occur during processing. * * @see org.xml.sax.DocumentHandler */ public void parse(File f, HandlerBase hb) throws SAXException, IOException { if (f == null) { throw new IllegalArgumentException("File cannot be null"); } String escapedURI = FilePathToURI.filepath2URI(f.getAbsolutePath()); if (DEBUG) { System.out.println("Escaped URI = " + escapedURI); } InputSource input = new InputSource(escapedURI); this.parse(input, hb); }
/** * Parse the content of the file specified as XML using the * specified {@link org.xml.sax.helpers.DefaultHandler}. * * @param f The file containing the XML to parse * @param dh The SAX DefaultHandler to use. * * @throws IllegalArgumentException If the File object is null. * @throws IOException If any IO errors occur. * @throws SAXException If any SAX errors occur during processing. * * @see org.xml.sax.DocumentHandler */ public void parse(File f, DefaultHandler dh) throws SAXException, IOException { if (f == null) { throw new IllegalArgumentException("File cannot be null"); } String escapedURI = FilePathToURI.filepath2URI(f.getAbsolutePath()); if (DEBUG) { System.out.println("Escaped URI = " + escapedURI); } InputSource input = new InputSource(escapedURI); this.parse(input, dh); }
/** * Parse the content of the file specified as XML using the * specified {@link org.xml.sax.helpers.DefaultHandler}. * * @param f The file containing the XML to parse * @param dh The SAX DefaultHandler to use. * * @throws IllegalArgumentException If the File object is null. * @throws IOException If any IO errors occur. * @throws SAXException If any SAX errors occur during processing. * * @see org.xml.sax.DocumentHandler */ public void parse(File f, DefaultHandler dh) throws SAXException, IOException { if (f == null) { throw new IllegalArgumentException("File cannot be null"); } String escapedURI = FilePathToURI.filepath2URI(f.getAbsolutePath()); if (DEBUG) { System.out.println("Escaped URI = " + escapedURI); } InputSource input = new InputSource(escapedURI); this.parse(input, dh); }
/** * Parse the content of the given file as an XML document * and return a new DOM {@link Document} object. * An <code>IllegalArgumentException</code> is thrown if the * <code>File</code> is <code>null</code> null. * * @param f The file containing the XML to parse. * @exception IOException If any IO errors occur. * @exception SAXException If any parse errors occur. * @see org.xml.sax.DocumentHandler * @return A new DOM Document object. */ public Document parse(File f) throws SAXException, IOException { if (f == null) { throw new IllegalArgumentException("File cannot be null"); } String escapedURI = FilePathToURI.filepath2URI(f.getAbsolutePath()); if (DEBUG) { System.out.println("Escaped URI = " + escapedURI); } InputSource in = new InputSource(escapedURI); return parse(in); }
/** * Parse the content of the given file as an XML document * and return a new DOM {@link Document} object. * An <code>IllegalArgumentException</code> is thrown if the * <code>File</code> is <code>null</code> null. * * @param f The file containing the XML to parse. * @exception IOException If any IO errors occur. * @exception SAXException If any parse errors occur. * @see org.xml.sax.DocumentHandler * @return A new DOM Document object. */ public Document parse(File f) throws SAXException, IOException { if (f == null) { throw new IllegalArgumentException("File cannot be null"); } String escapedURI = FilePathToURI.filepath2URI(f.getAbsolutePath()); if (DEBUG) { System.out.println("Escaped URI = " + escapedURI); } InputSource in = new InputSource(escapedURI); return parse(in); }
/** * Parse the content of the file specified as XML using the * specified {@link org.xml.sax.helpers.DefaultHandler}. * * @param f The file containing the XML to parse * @param dh The SAX DefaultHandler to use. * * @throws IllegalArgumentException If the File object is null. * @throws IOException If any IO errors occur. * @throws SAXException If any SAX errors occur during processing. * * @see org.xml.sax.DocumentHandler */ public void parse(File f, DefaultHandler dh) throws SAXException, IOException { if (f == null) { throw new IllegalArgumentException("File cannot be null"); } String escapedURI = FilePathToURI.filepath2URI(f.getAbsolutePath()); if (DEBUG) { System.out.println("Escaped URI = " + escapedURI); } InputSource input = new InputSource(escapedURI); this.parse(input, dh); }
/** * Parse the content of the given file as an XML document * and return a new DOM {@link Document} object. * An <code>IllegalArgumentException</code> is thrown if the * <code>File</code> is <code>null</code> null. * * @param f The file containing the XML to parse. * @exception IOException If any IO errors occur. * @exception SAXException If any parse errors occur. * @see org.xml.sax.DocumentHandler * @return A new DOM Document object. */ public Document parse(File f) throws SAXException, IOException { if (f == null) { throw new IllegalArgumentException("File cannot be null"); } String escapedURI = FilePathToURI.filepath2URI(f.getAbsolutePath()); if (DEBUG) { System.out.println("Escaped URI = " + escapedURI); } InputSource in = new InputSource(escapedURI); return parse(in); }
/** * Parse the content of the file specified as XML using the * specified {@link org.xml.sax.helpers.DefaultHandler}. * * @param f The file containing the XML to parse * @param dh The SAX DefaultHandler to use. * * @throws IllegalArgumentException If the File object is null. * @throws IOException If any IO errors occur. * @throws SAXException If any SAX errors occur during processing. * * @see org.xml.sax.DocumentHandler */ public void parse(File f, DefaultHandler dh) throws SAXException, IOException { if (f == null) { throw new IllegalArgumentException("File cannot be null"); } String escapedURI = FilePathToURI.filepath2URI(f.getAbsolutePath()); if (DEBUG) { System.out.println("Escaped URI = " + escapedURI); } InputSource input = new InputSource(escapedURI); this.parse(input, dh); }
/** * Parse the content of the file specified as XML using the * specified {@link org.xml.sax.helpers.DefaultHandler}. * * @param f The file containing the XML to parse * @param dh The SAX DefaultHandler to use. * * @throws IllegalArgumentException If the File object is null. * @throws IOException If any IO errors occur. * @throws SAXException If any SAX errors occur during processing. * * @see org.xml.sax.DocumentHandler */ public void parse(File f, DefaultHandler dh) throws SAXException, IOException { if (f == null) { throw new IllegalArgumentException("File cannot be null"); } String escapedURI = FilePathToURI.filepath2URI(f.getAbsolutePath()); if (DEBUG) { System.out.println("Escaped URI = " + escapedURI); } InputSource input = new InputSource(escapedURI); this.parse(input, dh); }
/** * Parse the content of the given file as an XML document * and return a new DOM {@link Document} object. * An <code>IllegalArgumentException</code> is thrown if the * <code>File</code> is <code>null</code> null. * * @param f The file containing the XML to parse. * @exception IOException If any IO errors occur. * @exception SAXException If any parse errors occur. * @see org.xml.sax.DocumentHandler * @return A new DOM Document object. */ public Document parse(File f) throws SAXException, IOException { if (f == null) { throw new IllegalArgumentException("File cannot be null"); } String escapedURI = FilePathToURI.filepath2URI(f.getAbsolutePath()); if (DEBUG) { System.out.println("Escaped URI = " + escapedURI); } InputSource in = new InputSource(escapedURI); return parse(in); }
/** * Parse the content of the given file as an XML document * and return a new DOM {@link Document} object. * An <code>IllegalArgumentException</code> is thrown if the * <code>File</code> is <code>null</code> null. * * @param f The file containing the XML to parse. * @exception IOException If any IO errors occur. * @exception SAXException If any parse errors occur. * @see org.xml.sax.DocumentHandler * @return A new DOM Document object. */ public Document parse(File f) throws SAXException, IOException { if (f == null) { throw new IllegalArgumentException("File cannot be null"); } String escapedURI = FilePathToURI.filepath2URI(f.getAbsolutePath()); if (DEBUG) { System.out.println("Escaped URI = " + escapedURI); } InputSource in = new InputSource(escapedURI); return parse(in); }
/** * Parse the content of the file specified as XML using the * specified {@link org.xml.sax.HandlerBase}. * <i> Use of the DefaultHandler version of this method is recommended as * the HandlerBase class has been deprecated in SAX 2.0</i> * * @param f The file containing the XML to parse * @param hb The SAX HandlerBase to use. * * @throws IllegalArgumentException If the File object is null. * @throws IOException If any IO errors occur. * @throws SAXException If any SAX errors occur during processing. * * @see org.xml.sax.DocumentHandler */ public void parse(File f, HandlerBase hb) throws SAXException, IOException { if (f == null) { throw new IllegalArgumentException("File cannot be null"); } String escapedURI = FilePathToURI.filepath2URI(f.getAbsolutePath()); if (DEBUG) { System.out.println("Escaped URI = " + escapedURI); } InputSource input = new InputSource(escapedURI); this.parse(input, hb); }
/** * Parse the content of the file specified as XML using the * specified {@link org.xml.sax.HandlerBase}. * <i> Use of the DefaultHandler version of this method is recommended as * the HandlerBase class has been deprecated in SAX 2.0</i> * * @param f The file containing the XML to parse * @param hb The SAX HandlerBase to use. * * @throws IllegalArgumentException If the File object is null. * @throws IOException If any IO errors occur. * @throws SAXException If any SAX errors occur during processing. * * @see org.xml.sax.DocumentHandler */ public void parse(File f, HandlerBase hb) throws SAXException, IOException { if (f == null) { throw new IllegalArgumentException("File cannot be null"); } String escapedURI = FilePathToURI.filepath2URI(f.getAbsolutePath()); if (DEBUG) { System.out.println("Escaped URI = " + escapedURI); } InputSource input = new InputSource(escapedURI); this.parse(input, hb); }
/** * Parse the content of the given file as an XML document * and return a new DOM {@link Document} object. * An <code>IllegalArgumentException</code> is thrown if the * <code>File</code> is <code>null</code> null. * * @param f The file containing the XML to parse. * @exception IOException If any IO errors occur. * @exception SAXException If any parse errors occur. * @see org.xml.sax.DocumentHandler * @return A new DOM Document object. */ public Document parse(File f) throws SAXException, IOException { if (f == null) { throw new IllegalArgumentException("File cannot be null"); } String escapedURI = FilePathToURI.filepath2URI(f.getAbsolutePath()); if (DEBUG) { System.out.println("Escaped URI = " + escapedURI); } InputSource in = new InputSource(escapedURI); return parse(in); }
/** * Parse the content of the file specified as XML using the * specified {@link org.xml.sax.HandlerBase}. * <i> Use of the DefaultHandler version of this method is recommended as * the HandlerBase class has been deprecated in SAX 2.0</i> * * @param f The file containing the XML to parse * @param hb The SAX HandlerBase to use. * * @throws IllegalArgumentException If the File object is null. * @throws IOException If any IO errors occur. * @throws SAXException If any SAX errors occur during processing. * * @see org.xml.sax.DocumentHandler */ public void parse(File f, HandlerBase hb) throws SAXException, IOException { if (f == null) { throw new IllegalArgumentException("File cannot be null"); } String escapedURI = FilePathToURI.filepath2URI(f.getAbsolutePath()); if (DEBUG) { System.out.println("Escaped URI = " + escapedURI); } InputSource input = new InputSource(escapedURI); this.parse(input, hb); }
/** * Parse the content of the file specified as XML using the * specified {@link org.xml.sax.helpers.DefaultHandler}. * * @param f The file containing the XML to parse * @param dh The SAX DefaultHandler to use. * * @throws IllegalArgumentException If the File object is null. * @throws IOException If any IO errors occur. * @throws SAXException If any SAX errors occur during processing. * * @see org.xml.sax.DocumentHandler */ public void parse(File f, DefaultHandler dh) throws SAXException, IOException { if (f == null) { throw new IllegalArgumentException("File cannot be null"); } String escapedURI = FilePathToURI.filepath2URI(f.getAbsolutePath()); if (DEBUG) { System.out.println("Escaped URI = " + escapedURI); } InputSource input = new InputSource(escapedURI); this.parse(input, dh); }
/** * Parse the content of the file specified as XML using the * specified {@link org.xml.sax.HandlerBase}. * <i> Use of the DefaultHandler version of this method is recommended as * the HandlerBase class has been deprecated in SAX 2.0</i> * * @param f The file containing the XML to parse * @param hb The SAX HandlerBase to use. * * @throws IllegalArgumentException If the File object is null. * @throws IOException If any IO errors occur. * @throws SAXException If any SAX errors occur during processing. * * @see org.xml.sax.DocumentHandler */ public void parse(File f, HandlerBase hb) throws SAXException, IOException { if (f == null) { throw new IllegalArgumentException("File cannot be null"); } String escapedURI = FilePathToURI.filepath2URI(f.getAbsolutePath()); if (DEBUG) { System.out.println("Escaped URI = " + escapedURI); } InputSource input = new InputSource(escapedURI); this.parse(input, hb); }