Package org.dbcooper.io

Examples of org.dbcooper.io.InputStreamTemplate


   * Creates and returns a data set from the given resource.
   * @param resource The resource containing the data set.
   * @return A data set.
   */
  public IDataSet loadDataSet(Resource resource) {
    return (IDataSet) new InputStreamTemplate(resource).execute(new InputStreamCallback() {
      public IDataSet doInInputStream(InputStream inputStream) throws IOException {
        try {
          return dataSetLoader.load(inputStream);
        }
        catch (DataSetException ex) {
View Full Code Here

TOP

Related Classes of org.dbcooper.io.InputStreamTemplate

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.