Package org.ribax.datasources

Examples of org.ribax.datasources.DataSource


        if (tlist != null)
          params.addAll(tlist);
      }
     
        // get a data source for the given URL
      DataSource  dataSource = DataSourceFactory.getDataSource(url,name);
     
      try {
            // get the input stream and return it
        return dataSource.getInputStream(params);
       
      } catch (IOException ex) {
        LOG.error(Messages.getString("DataUtils.0")+url,ex); //$NON-NLS-1$
        throw(ex);
     
View Full Code Here


     * @see {@link org.ribax.data.DataModelManager#readModel(Element, String)}
     */
    private void getDescription(String url, ArrayList params) {
        // open the url from the parameter

        DataSource hac = DataSourceFactory.getDataSource(url,"init"); //$NON-NLS-1$

        if (hac == null) {
            errorMessage(Messages.getString("RIBAXApplet.42")+url+Messages.getString("RIBAXApplet.43")); //$NON-NLS-1$ //$NON-NLS-2$
            return;
        }
        try {
            InputStream fin = hac.getInputStream(params);

            // create node tree from XML
            SAXBuilder builder = new SAXBuilder();

            Document doc = builder.build(fin);
View Full Code Here

TOP

Related Classes of org.ribax.datasources.DataSource

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.