jdk.internal.org.xml.sax.XMLReader Java Examples
The following examples show how to use
jdk.internal.org.xml.sax.XMLReader.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: SAXParser.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
/** * Parse the content given {@link org.xml.sax.InputSource} * as XML using the specified * {@link org.xml.sax.helpers.DefaultHandler}. * * @param is The InputSource containing the content to be parsed. * @param dh The SAX DefaultHandler to use. * * @throws IllegalArgumentException If the <code>InputSource</code> object * is <code>null</code>. * @throws IOException If any IO errors occur. * @throws SAXException If any SAX errors occur during processing. * * @see org.xml.sax.DocumentHandler */ public void parse(InputSource is, DefaultHandler dh) throws SAXException, IOException { if (is == null) { throw new IllegalArgumentException("InputSource cannot be null"); } XMLReader reader = this.getXMLReader(); if (dh != null) { reader.setContentHandler(dh); reader.setEntityResolver(dh); reader.setErrorHandler(dh); reader.setDTDHandler(dh); } reader.parse(is); }
Example #2
Source File: SAXParser.java From hottub with GNU General Public License v2.0 | 6 votes |
/** * Parse the content given {@link org.xml.sax.InputSource} * as XML using the specified * {@link org.xml.sax.helpers.DefaultHandler}. * * @param is The InputSource containing the content to be parsed. * @param dh The SAX DefaultHandler to use. * * @throws IllegalArgumentException If the <code>InputSource</code> object * is <code>null</code>. * @throws IOException If any IO errors occur. * @throws SAXException If any SAX errors occur during processing. * * @see org.xml.sax.DocumentHandler */ public void parse(InputSource is, DefaultHandler dh) throws SAXException, IOException { if (is == null) { throw new IllegalArgumentException("InputSource cannot be null"); } XMLReader reader = this.getXMLReader(); if (dh != null) { reader.setContentHandler(dh); reader.setEntityResolver(dh); reader.setErrorHandler(dh); reader.setDTDHandler(dh); } reader.parse(is); }
Example #3
Source File: SAXParser.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
/** * Parse the content given {@link org.xml.sax.InputSource} * as XML using the specified * {@link org.xml.sax.helpers.DefaultHandler}. * * @param is The InputSource containing the content to be parsed. * @param dh The SAX DefaultHandler to use. * * @throws IllegalArgumentException If the <code>InputSource</code> object * is <code>null</code>. * @throws IOException If any IO errors occur. * @throws SAXException If any SAX errors occur during processing. * * @see org.xml.sax.DocumentHandler */ public void parse(InputSource is, DefaultHandler dh) throws SAXException, IOException { if (is == null) { throw new IllegalArgumentException("InputSource cannot be null"); } XMLReader reader = this.getXMLReader(); if (dh != null) { reader.setContentHandler(dh); reader.setEntityResolver(dh); reader.setErrorHandler(dh); reader.setDTDHandler(dh); } reader.parse(is); }
Example #4
Source File: SAXParser.java From jdk8u-jdk with GNU General Public License v2.0 | 6 votes |
/** * Parse the content given {@link org.xml.sax.InputSource} * as XML using the specified * {@link org.xml.sax.helpers.DefaultHandler}. * * @param is The InputSource containing the content to be parsed. * @param dh The SAX DefaultHandler to use. * * @throws IllegalArgumentException If the <code>InputSource</code> object * is <code>null</code>. * @throws IOException If any IO errors occur. * @throws SAXException If any SAX errors occur during processing. * * @see org.xml.sax.DocumentHandler */ public void parse(InputSource is, DefaultHandler dh) throws SAXException, IOException { if (is == null) { throw new IllegalArgumentException("InputSource cannot be null"); } XMLReader reader = this.getXMLReader(); if (dh != null) { reader.setContentHandler(dh); reader.setEntityResolver(dh); reader.setErrorHandler(dh); reader.setDTDHandler(dh); } reader.parse(is); }
Example #5
Source File: SAXParser.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
/** * Parse the content given {@link org.xml.sax.InputSource} * as XML using the specified * {@link org.xml.sax.helpers.DefaultHandler}. * * @param is The InputSource containing the content to be parsed. * @param dh The SAX DefaultHandler to use. * * @throws IllegalArgumentException If the <code>InputSource</code> object * is <code>null</code>. * @throws IOException If any IO errors occur. * @throws SAXException If any SAX errors occur during processing. * * @see org.xml.sax.DocumentHandler */ public void parse(InputSource is, DefaultHandler dh) throws SAXException, IOException { if (is == null) { throw new IllegalArgumentException("InputSource cannot be null"); } XMLReader reader = this.getXMLReader(); if (dh != null) { reader.setContentHandler(dh); reader.setEntityResolver(dh); reader.setErrorHandler(dh); reader.setDTDHandler(dh); } reader.parse(is); }
Example #6
Source File: SAXParser.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
/** * Parse the content given {@link org.xml.sax.InputSource} * as XML using the specified * {@link org.xml.sax.helpers.DefaultHandler}. * * @param is The InputSource containing the content to be parsed. * @param dh The SAX DefaultHandler to use. * * @throws IllegalArgumentException If the <code>InputSource</code> object * is <code>null</code>. * @throws IOException If any IO errors occur. * @throws SAXException If any SAX errors occur during processing. * * @see org.xml.sax.DocumentHandler */ public void parse(InputSource is, DefaultHandler dh) throws SAXException, IOException { if (is == null) { throw new IllegalArgumentException("InputSource cannot be null"); } XMLReader reader = this.getXMLReader(); if (dh != null) { reader.setContentHandler(dh); reader.setEntityResolver(dh); reader.setErrorHandler(dh); reader.setDTDHandler(dh); } reader.parse(is); }
Example #7
Source File: SAXParser.java From Bytecoder with Apache License 2.0 | 6 votes |
/** * Parse the content given {@link org.xml.sax.InputSource} * as XML using the specified * {@link org.xml.sax.helpers.DefaultHandler}. * * @param is The InputSource containing the content to be parsed. * @param dh The SAX DefaultHandler to use. * * @throws IllegalArgumentException If the <code>InputSource</code> object * is <code>null</code>. * @throws IOException If any IO errors occur. * @throws SAXException If any SAX errors occur during processing. * * @see org.xml.sax.DocumentHandler */ public void parse(InputSource is, DefaultHandler dh) throws SAXException, IOException { if (is == null) { throw new IllegalArgumentException("InputSource cannot be null"); } XMLReader reader = this.getXMLReader(); if (dh != null) { reader.setContentHandler(dh); reader.setEntityResolver(dh); reader.setErrorHandler(dh); reader.setDTDHandler(dh); } reader.parse(is); }
Example #8
Source File: SAXParser.java From jdk8u_jdk with GNU General Public License v2.0 | 6 votes |
/** * Parse the content given {@link org.xml.sax.InputSource} * as XML using the specified * {@link org.xml.sax.helpers.DefaultHandler}. * * @param is The InputSource containing the content to be parsed. * @param dh The SAX DefaultHandler to use. * * @throws IllegalArgumentException If the <code>InputSource</code> object * is <code>null</code>. * @throws IOException If any IO errors occur. * @throws SAXException If any SAX errors occur during processing. * * @see org.xml.sax.DocumentHandler */ public void parse(InputSource is, DefaultHandler dh) throws SAXException, IOException { if (is == null) { throw new IllegalArgumentException("InputSource cannot be null"); } XMLReader reader = this.getXMLReader(); if (dh != null) { reader.setContentHandler(dh); reader.setEntityResolver(dh); reader.setErrorHandler(dh); reader.setDTDHandler(dh); } reader.parse(is); }
Example #9
Source File: SAXParser.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
/** * Parse the content given {@link org.xml.sax.InputSource} * as XML using the specified * {@link org.xml.sax.helpers.DefaultHandler}. * * @param is The InputSource containing the content to be parsed. * @param dh The SAX DefaultHandler to use. * * @throws IllegalArgumentException If the <code>InputSource</code> object * is <code>null</code>. * @throws IOException If any IO errors occur. * @throws SAXException If any SAX errors occur during processing. * * @see org.xml.sax.DocumentHandler */ public void parse(InputSource is, DefaultHandler dh) throws SAXException, IOException { if (is == null) { throw new IllegalArgumentException("InputSource cannot be null"); } XMLReader reader = this.getXMLReader(); if (dh != null) { reader.setContentHandler(dh); reader.setEntityResolver(dh); reader.setErrorHandler(dh); reader.setDTDHandler(dh); } reader.parse(is); }
Example #10
Source File: SAXParser.java From jdk8u-jdk with GNU General Public License v2.0 | 6 votes |
/** * Parse the content given {@link org.xml.sax.InputSource} * as XML using the specified * {@link org.xml.sax.helpers.DefaultHandler}. * * @param is The InputSource containing the content to be parsed. * @param dh The SAX DefaultHandler to use. * * @throws IllegalArgumentException If the <code>InputSource</code> object * is <code>null</code>. * @throws IOException If any IO errors occur. * @throws SAXException If any SAX errors occur during processing. * * @see org.xml.sax.DocumentHandler */ public void parse(InputSource is, DefaultHandler dh) throws SAXException, IOException { if (is == null) { throw new IllegalArgumentException("InputSource cannot be null"); } XMLReader reader = this.getXMLReader(); if (dh != null) { reader.setContentHandler(dh); reader.setEntityResolver(dh); reader.setErrorHandler(dh); reader.setDTDHandler(dh); } reader.parse(is); }
Example #11
Source File: SAXParser.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
/** * Parse the content given {@link org.xml.sax.InputSource} * as XML using the specified * {@link org.xml.sax.helpers.DefaultHandler}. * * @param is The InputSource containing the content to be parsed. * @param dh The SAX DefaultHandler to use. * * @throws IllegalArgumentException If the <code>InputSource</code> object * is <code>null</code>. * @throws IOException If any IO errors occur. * @throws SAXException If any SAX errors occur during processing. * * @see org.xml.sax.DocumentHandler */ public void parse(InputSource is, DefaultHandler dh) throws SAXException, IOException { if (is == null) { throw new IllegalArgumentException("InputSource cannot be null"); } XMLReader reader = this.getXMLReader(); if (dh != null) { reader.setContentHandler(dh); reader.setEntityResolver(dh); reader.setErrorHandler(dh); reader.setDTDHandler(dh); } reader.parse(is); }
Example #12
Source File: SAXParser.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 6 votes |
/** * Parse the content given {@link org.xml.sax.InputSource} * as XML using the specified * {@link org.xml.sax.helpers.DefaultHandler}. * * @param is The InputSource containing the content to be parsed. * @param dh The SAX DefaultHandler to use. * * @throws IllegalArgumentException If the <code>InputSource</code> object * is <code>null</code>. * @throws IOException If any IO errors occur. * @throws SAXException If any SAX errors occur during processing. * * @see org.xml.sax.DocumentHandler */ public void parse(InputSource is, DefaultHandler dh) throws SAXException, IOException { if (is == null) { throw new IllegalArgumentException("InputSource cannot be null"); } XMLReader reader = this.getXMLReader(); if (dh != null) { reader.setContentHandler(dh); reader.setEntityResolver(dh); reader.setErrorHandler(dh); reader.setDTDHandler(dh); } reader.parse(is); }
Example #13
Source File: SAXParser.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
/** * Parse the content given {@link org.xml.sax.InputSource} * as XML using the specified * {@link org.xml.sax.helpers.DefaultHandler}. * * @param is The InputSource containing the content to be parsed. * @param dh The SAX DefaultHandler to use. * * @throws IllegalArgumentException If the <code>InputSource</code> object * is <code>null</code>. * @throws IOException If any IO errors occur. * @throws SAXException If any SAX errors occur during processing. * * @see org.xml.sax.DocumentHandler */ public void parse(InputSource is, DefaultHandler dh) throws SAXException, IOException { if (is == null) { throw new IllegalArgumentException("InputSource cannot be null"); } XMLReader reader = this.getXMLReader(); if (dh != null) { reader.setContentHandler(dh); reader.setEntityResolver(dh); reader.setErrorHandler(dh); reader.setDTDHandler(dh); } reader.parse(is); }
Example #14
Source File: SAXParser.java From dragonwell8_jdk with GNU General Public License v2.0 | 6 votes |
/** * Parse the content given {@link org.xml.sax.InputSource} * as XML using the specified * {@link org.xml.sax.helpers.DefaultHandler}. * * @param is The InputSource containing the content to be parsed. * @param dh The SAX DefaultHandler to use. * * @throws IllegalArgumentException If the <code>InputSource</code> object * is <code>null</code>. * @throws IOException If any IO errors occur. * @throws SAXException If any SAX errors occur during processing. * * @see org.xml.sax.DocumentHandler */ public void parse(InputSource is, DefaultHandler dh) throws SAXException, IOException { if (is == null) { throw new IllegalArgumentException("InputSource cannot be null"); } XMLReader reader = this.getXMLReader(); if (dh != null) { reader.setContentHandler(dh); reader.setEntityResolver(dh); reader.setErrorHandler(dh); reader.setDTDHandler(dh); } reader.parse(is); }
Example #15
Source File: SAXParserImpl.java From jdk8u_jdk with GNU General Public License v2.0 | 2 votes |
/** * Returns the {@link org.xml.sax.XMLReader} that is encapsulated by the * implementation of this class. * * @return The XMLReader that is encapsulated by the * implementation of this class. * * @throws SAXException If any SAX errors occur during processing. */ public XMLReader getXMLReader() throws SAXException { return parser; }
Example #16
Source File: SAXParser.java From jdk8u_jdk with GNU General Public License v2.0 | 2 votes |
/** * Returns the {@link org.xml.sax.XMLReader} that is encapsulated by the * implementation of this class. * * @return The XMLReader that is encapsulated by the * implementation of this class. * * @throws SAXException If any SAX errors occur during processing. */ public abstract XMLReader getXMLReader() throws SAXException;
Example #17
Source File: SAXParserImpl.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 2 votes |
/** * Returns the {@link org.xml.sax.XMLReader} that is encapsulated by the * implementation of this class. * * @return The XMLReader that is encapsulated by the * implementation of this class. * * @throws SAXException If any SAX errors occur during processing. */ public XMLReader getXMLReader() throws SAXException { return parser; }
Example #18
Source File: SAXParser.java From jdk8u-jdk with GNU General Public License v2.0 | 2 votes |
/** * Returns the {@link org.xml.sax.XMLReader} that is encapsulated by the * implementation of this class. * * @return The XMLReader that is encapsulated by the * implementation of this class. * * @throws SAXException If any SAX errors occur during processing. */ public abstract XMLReader getXMLReader() throws SAXException;
Example #19
Source File: SAXParserImpl.java From openjdk-8 with GNU General Public License v2.0 | 2 votes |
/** * Returns the {@link org.xml.sax.XMLReader} that is encapsulated by the * implementation of this class. * * @return The XMLReader that is encapsulated by the * implementation of this class. * * @throws SAXException If any SAX errors occur during processing. */ public XMLReader getXMLReader() throws SAXException { return parser; }
Example #20
Source File: SAXParser.java From openjdk-8 with GNU General Public License v2.0 | 2 votes |
/** * Returns the {@link org.xml.sax.XMLReader} that is encapsulated by the * implementation of this class. * * @return The XMLReader that is encapsulated by the * implementation of this class. * * @throws SAXException If any SAX errors occur during processing. */ public abstract XMLReader getXMLReader() throws SAXException;
Example #21
Source File: SAXParserImpl.java From jdk8u-jdk with GNU General Public License v2.0 | 2 votes |
/** * Returns the {@link org.xml.sax.XMLReader} that is encapsulated by the * implementation of this class. * * @return The XMLReader that is encapsulated by the * implementation of this class. * * @throws SAXException If any SAX errors occur during processing. */ public XMLReader getXMLReader() throws SAXException { return parser; }
Example #22
Source File: SAXParserImpl.java From openjdk-8-source with GNU General Public License v2.0 | 2 votes |
/** * Returns the {@link org.xml.sax.XMLReader} that is encapsulated by the * implementation of this class. * * @return The XMLReader that is encapsulated by the * implementation of this class. * * @throws SAXException If any SAX errors occur during processing. */ public XMLReader getXMLReader() throws SAXException { return parser; }
Example #23
Source File: SAXParser.java From openjdk-8-source with GNU General Public License v2.0 | 2 votes |
/** * Returns the {@link org.xml.sax.XMLReader} that is encapsulated by the * implementation of this class. * * @return The XMLReader that is encapsulated by the * implementation of this class. * * @throws SAXException If any SAX errors occur during processing. */ public abstract XMLReader getXMLReader() throws SAXException;
Example #24
Source File: SAXParser.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 2 votes |
/** * Returns the {@link org.xml.sax.XMLReader} that is encapsulated by the * implementation of this class. * * @return The XMLReader that is encapsulated by the * implementation of this class. * * @throws SAXException If any SAX errors occur during processing. */ public abstract XMLReader getXMLReader() throws SAXException;
Example #25
Source File: SAXParserImpl.java From hottub with GNU General Public License v2.0 | 2 votes |
/** * Returns the {@link org.xml.sax.XMLReader} that is encapsulated by the * implementation of this class. * * @return The XMLReader that is encapsulated by the * implementation of this class. * * @throws SAXException If any SAX errors occur during processing. */ public XMLReader getXMLReader() throws SAXException { return parser; }
Example #26
Source File: SAXParser.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 2 votes |
/** * Returns the {@link org.xml.sax.XMLReader} that is encapsulated by the * implementation of this class. * * @return The XMLReader that is encapsulated by the * implementation of this class. * * @throws SAXException If any SAX errors occur during processing. */ public abstract XMLReader getXMLReader() throws SAXException;
Example #27
Source File: SAXParser.java From dragonwell8_jdk with GNU General Public License v2.0 | 2 votes |
/** * Returns the {@link org.xml.sax.XMLReader} that is encapsulated by the * implementation of this class. * * @return The XMLReader that is encapsulated by the * implementation of this class. * * @throws SAXException If any SAX errors occur during processing. */ public abstract XMLReader getXMLReader() throws SAXException;
Example #28
Source File: SAXParserImpl.java From dragonwell8_jdk with GNU General Public License v2.0 | 2 votes |
/** * Returns the {@link org.xml.sax.XMLReader} that is encapsulated by the * implementation of this class. * * @return The XMLReader that is encapsulated by the * implementation of this class. * * @throws SAXException If any SAX errors occur during processing. */ public XMLReader getXMLReader() throws SAXException { return parser; }
Example #29
Source File: SAXParser.java From TencentKona-8 with GNU General Public License v2.0 | 2 votes |
/** * Returns the {@link org.xml.sax.XMLReader} that is encapsulated by the * implementation of this class. * * @return The XMLReader that is encapsulated by the * implementation of this class. * * @throws SAXException If any SAX errors occur during processing. */ public abstract XMLReader getXMLReader() throws SAXException;
Example #30
Source File: SAXParserImpl.java From TencentKona-8 with GNU General Public License v2.0 | 2 votes |
/** * Returns the {@link org.xml.sax.XMLReader} that is encapsulated by the * implementation of this class. * * @return The XMLReader that is encapsulated by the * implementation of this class. * * @throws SAXException If any SAX errors occur during processing. */ public XMLReader getXMLReader() throws SAXException { return parser; }