Java Code Examples for com.sun.tools.internal.xjc.Options#normalizeSystemId()
The following examples show how to use
com.sun.tools.internal.xjc.Options#normalizeSystemId() .
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: DOMForest.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
/** * Parses an XML at the given location ( * and XMLs referenced by it) into DOM trees * and stores them to this forest. * * @return the parsed DOM document object. */ public Document parse( String systemId, boolean root ) throws SAXException, IOException { systemId = Options.normalizeSystemId(systemId); if( core.containsKey(systemId) ) // this document has already been parsed. Just ignore. return core.get(systemId); InputSource is=null; // allow entity resolver to find the actual byte stream. if( entityResolver!=null ) is = entityResolver.resolveEntity(null,systemId); if( is==null ) is = new InputSource(systemId); // but we still use the original system Id as the key. return parse( systemId, is, root ); }
Example 2
Source File: DOMForest.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
/** * Parses an XML at the given location ( * and XMLs referenced by it) into DOM trees * and stores them to this forest. * * @return the parsed DOM document object. */ public Document parse( String systemId, boolean root ) throws SAXException, IOException { systemId = Options.normalizeSystemId(systemId); if( core.containsKey(systemId) ) // this document has already been parsed. Just ignore. return core.get(systemId); InputSource is=null; // allow entity resolver to find the actual byte stream. if( entityResolver!=null ) is = entityResolver.resolveEntity(null,systemId); if( is==null ) is = new InputSource(systemId); // but we still use the original system Id as the key. return parse( systemId, is, root ); }
Example 3
Source File: DOMForest.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
/** * Parses an XML at the given location ( * and XMLs referenced by it) into DOM trees * and stores them to this forest. * * @return the parsed DOM document object. */ public Document parse( String systemId, boolean root ) throws SAXException, IOException { systemId = Options.normalizeSystemId(systemId); if( core.containsKey(systemId) ) // this document has already been parsed. Just ignore. return core.get(systemId); InputSource is=null; // allow entity resolver to find the actual byte stream. if( entityResolver!=null ) is = entityResolver.resolveEntity(null,systemId); if( is==null ) is = new InputSource(systemId); // but we still use the original system Id as the key. return parse( systemId, is, root ); }
Example 4
Source File: DOMForest.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
/** * Parses an XML at the given location ( * and XMLs referenced by it) into DOM trees * and stores them to this forest. * * @return the parsed DOM document object. */ public Document parse( String systemId, boolean root ) throws SAXException, IOException { systemId = Options.normalizeSystemId(systemId); if( core.containsKey(systemId) ) // this document has already been parsed. Just ignore. return core.get(systemId); InputSource is=null; // allow entity resolver to find the actual byte stream. if( entityResolver!=null ) is = entityResolver.resolveEntity(null,systemId); if( is==null ) is = new InputSource(systemId); // but we still use the original system Id as the key. return parse( systemId, is, root ); }
Example 5
Source File: DOMForest.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
/** * Parses an XML at the given location ( * and XMLs referenced by it) into DOM trees * and stores them to this forest. * * @return the parsed DOM document object. */ public Document parse( String systemId, boolean root ) throws SAXException, IOException { systemId = Options.normalizeSystemId(systemId); if( core.containsKey(systemId) ) // this document has already been parsed. Just ignore. return core.get(systemId); InputSource is=null; // allow entity resolver to find the actual byte stream. if( entityResolver!=null ) is = entityResolver.resolveEntity(null,systemId); if( is==null ) is = new InputSource(systemId); // but we still use the original system Id as the key. return parse( systemId, is, root ); }
Example 6
Source File: DOMForest.java From hottub with GNU General Public License v2.0 | 6 votes |
/** * Parses an XML at the given location ( * and XMLs referenced by it) into DOM trees * and stores them to this forest. * * @return the parsed DOM document object. */ public Document parse( String systemId, boolean root ) throws SAXException, IOException { systemId = Options.normalizeSystemId(systemId); if( core.containsKey(systemId) ) // this document has already been parsed. Just ignore. return core.get(systemId); InputSource is=null; // allow entity resolver to find the actual byte stream. if( entityResolver!=null ) is = entityResolver.resolveEntity(null,systemId); if( is==null ) is = new InputSource(systemId); // but we still use the original system Id as the key. return parse( systemId, is, root ); }
Example 7
Source File: DOMForest.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
/** * Parses an XML at the given location ( * and XMLs referenced by it) into DOM trees * and stores them to this forest. * * @return the parsed DOM document object. */ public Document parse( String systemId, boolean root ) throws SAXException, IOException { systemId = Options.normalizeSystemId(systemId); if( core.containsKey(systemId) ) // this document has already been parsed. Just ignore. return core.get(systemId); InputSource is=null; // allow entity resolver to find the actual byte stream. if( entityResolver!=null ) is = entityResolver.resolveEntity(null,systemId); if( is==null ) is = new InputSource(systemId); // but we still use the original system Id as the key. return parse( systemId, is, root ); }
Example 8
Source File: DOMForest.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
/** * Parses an XML at the given location ( * and XMLs referenced by it) into DOM trees * and stores them to this forest. * * @return the parsed DOM document object. */ public Document parse( String systemId, boolean root ) throws SAXException, IOException { systemId = Options.normalizeSystemId(systemId); if( core.containsKey(systemId) ) // this document has already been parsed. Just ignore. return core.get(systemId); InputSource is=null; // allow entity resolver to find the actual byte stream. if( entityResolver!=null ) is = entityResolver.resolveEntity(null,systemId); if( is==null ) is = new InputSource(systemId); // but we still use the original system Id as the key. return parse( systemId, is, root ); }
Example 9
Source File: DOMForest.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
public Document parse( String systemId, XMLStreamReader parser, boolean root ) throws XMLStreamException { Document dom = documentBuilder.newDocument(); systemId = Options.normalizeSystemId(systemId); if(root) rootDocuments.add(systemId); if(systemId==null) throw new IllegalArgumentException("system id cannot be null"); core.put( systemId, dom ); new XMLStreamReaderToContentHandler(parser,getParserHandler(dom),false,false).bridge(); return dom; }
Example 10
Source File: DOMForest.java From jdk8u60 with GNU General Public License v2.0 | 4 votes |
public Document parse( String systemId, XMLStreamReader parser, boolean root ) throws XMLStreamException { Document dom = documentBuilder.newDocument(); systemId = Options.normalizeSystemId(systemId); if(root) rootDocuments.add(systemId); if(systemId==null) throw new IllegalArgumentException("system id cannot be null"); core.put( systemId, dom ); new XMLStreamReaderToContentHandler(parser,getParserHandler(dom),false,false).bridge(); return dom; }
Example 11
Source File: DOMForest.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
public Document parse( String systemId, XMLStreamReader parser, boolean root ) throws XMLStreamException { Document dom = documentBuilder.newDocument(); systemId = Options.normalizeSystemId(systemId); if(root) rootDocuments.add(systemId); if(systemId==null) throw new IllegalArgumentException("system id cannot be null"); core.put( systemId, dom ); new XMLStreamReaderToContentHandler(parser,getParserHandler(dom),false,false).bridge(); return dom; }
Example 12
Source File: DOMForest.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
public Document parse( String systemId, XMLStreamReader parser, boolean root ) throws XMLStreamException { Document dom = documentBuilder.newDocument(); systemId = Options.normalizeSystemId(systemId); if(root) rootDocuments.add(systemId); if(systemId==null) throw new IllegalArgumentException("system id cannot be null"); core.put( systemId, dom ); new XMLStreamReaderToContentHandler(parser,getParserHandler(dom),false,false).bridge(); return dom; }
Example 13
Source File: DOMForest.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
public Document parse( String systemId, XMLStreamReader parser, boolean root ) throws XMLStreamException { Document dom = documentBuilder.newDocument(); systemId = Options.normalizeSystemId(systemId); if(root) rootDocuments.add(systemId); if(systemId==null) throw new IllegalArgumentException("system id cannot be null"); core.put( systemId, dom ); new XMLStreamReaderToContentHandler(parser,getParserHandler(dom),false,false).bridge(); return dom; }
Example 14
Source File: DOMForest.java From hottub with GNU General Public License v2.0 | 4 votes |
public Document parse( String systemId, XMLStreamReader parser, boolean root ) throws XMLStreamException { Document dom = documentBuilder.newDocument(); systemId = Options.normalizeSystemId(systemId); if(root) rootDocuments.add(systemId); if(systemId==null) throw new IllegalArgumentException("system id cannot be null"); core.put( systemId, dom ); new XMLStreamReaderToContentHandler(parser,getParserHandler(dom),false,false).bridge(); return dom; }
Example 15
Source File: DOMForest.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
public Document parse( String systemId, XMLStreamReader parser, boolean root ) throws XMLStreamException { Document dom = documentBuilder.newDocument(); systemId = Options.normalizeSystemId(systemId); if(root) rootDocuments.add(systemId); if(systemId==null) throw new IllegalArgumentException("system id cannot be null"); core.put( systemId, dom ); new XMLStreamReaderToContentHandler(parser,getParserHandler(dom),false,false).bridge(); return dom; }
Example 16
Source File: DOMForest.java From openjdk-8 with GNU General Public License v2.0 | 4 votes |
public Document parse( String systemId, XMLStreamReader parser, boolean root ) throws XMLStreamException { Document dom = documentBuilder.newDocument(); systemId = Options.normalizeSystemId(systemId); if(root) rootDocuments.add(systemId); if(systemId==null) throw new IllegalArgumentException("system id cannot be null"); core.put( systemId, dom ); new XMLStreamReaderToContentHandler(parser,getParserHandler(dom),false,false).bridge(); return dom; }