public void readSearchDescriptor( InputStream input ) throws IOException, SAXException { readSearchDescriptor( _xmlContext.getParser(), new InputSource( input ) ); }
public void readImportDescriptor( InputStream input ) throws IOException, SAXException { readImportDescriptor( _xmlContext.getParser(), new InputSource( input ) ); }
public void importDocument( InputStream stream ) throws ImportExportException { importDocument( _xmlContext.getParser(), new InputSource( stream ) ); }
public void readSearchDescriptor(Reader input) throws IOException, SAXException { readSearchDescriptor(_xmlContext.getParser(), new InputSource(input)); }
public void readImportDescriptor(InputStream input) throws IOException, SAXException { readImportDescriptor(_xmlContext.getParser(), new InputSource(input)); }
public void readSearchDescriptor(InputStream input) throws IOException, SAXException { readSearchDescriptor(_xmlContext.getParser(), new InputSource(input)); }
public void importDocument(InputStream stream) throws ImportExportException { importDocument(_xmlContext.getParser(), new InputSource(stream)); }
public void importDocument(Reader reader) throws ImportExportException { importDocument(_xmlContext.getParser(), new InputSource(reader)); }
public void readImportDescriptor(Reader input) throws IOException, SAXException { readImportDescriptor(_xmlContext.getParser(), new InputSource(input)); }
protected void readImportDescriptor( Parser parser, InputSource input ) throws IOException, SAXException { ImportDescriptor desc; desc = new ImportDescriptor(); parser.setDocumentHandler( desc ); parser.parse( input ); setImportDescriptor( desc ); }
protected void readSearchDescriptor( Parser parser, InputSource input ) throws IOException, SAXException { SearchDescriptor desc; desc = new SearchDescriptor(); parser.setDocumentHandler( desc ); parser.parse( input ); setSearchDescriptor( desc ); }
parser = _internalContext.getParser(); if (parser == null) throw new MarshalException("Unable to create SAX Parser.");
parser = _internalContext.getParser(); if (parser == null) throw new MarshalException("Unable to create SAX Parser.");
/** * Creates an XML Schema using the given InputSource. The InputSource must be for an XML instance * document. The XML Schema created will be based on the specific XML instance document. * * @param source the InputSource for the XML document */ public Schema createSchema(InputSource source) throws IOException { XMLInstance2SchemaHandler handler = new XMLInstance2SchemaHandler(); handler.setDefaultGroupOrder(_defaultGroup); try { Parser parser = _internalContext.getParser(); if (parser == null) { throw new IOException("fatal error: unable to create SAX parser."); } parser.setDocumentHandler(handler); parser.setErrorHandler(handler); parser.parse(source); } catch (org.xml.sax.SAXException sx) { throw new NestedIOException(sx); } return handler.getSchema(); }
/** * Creates an XML Schema using the given InputSource. The InputSource must * be for an XML instance document. The XML Schema created will be based on * the specific XML instance document. * * @param source * the InputSource for the XML document */ public Schema createSchema(InputSource source) throws IOException { XMLInstance2SchemaHandler handler = new XMLInstance2SchemaHandler(); handler.setDefaultGroupOrder(_defaultGroup); try { Parser parser = _internalContext.getParser(); if (parser == null) { throw new IOException( "fatal error: unable to create SAX parser."); } parser.setDocumentHandler(handler); parser.setErrorHandler(handler); parser.parse(source); } catch (org.xml.sax.SAXException sx) { throw new NestedIOException(sx); } return handler.getSchema(); }
public void importDocument( Parser parser, InputSource input ) throws ImportExportException { Consumer consumer; consumer = createConsumer(); parser.setDocumentHandler( consumer ); try { parser.parse( input ); } catch ( SAXException except ) { throw new ImportExportException( except ); } catch ( IOException except ) { throw new ImportExportException( except ); } if ( consumer.getResults() != null ) { importEntries( consumer.getResults() ); } }
parser = _internalContext.getParser(); } catch (RuntimeException rte) {