Package uk.org.ogsadai.client.toolkit

Examples of uk.org.ogsadai.client.toolkit.DataSourceDataValueIterator


        fo = new FileOutputStream(mSaveFile);
        //Prob want to wrap with buffered input stream again

        BufferedInputStream is = new BufferedInputStream(
          new ResultInputStream(
              new DataSourceDataValueIterator(dataSource)));

        byte[] buff = new byte[10*1024]; //10K buffer

        try {
          int len = is.read(buff);
View Full Code Here


    public static ResultSet getAsResultSet(
            Result result, int numberBlocksPerCall)
        throws WebRowSetResultSetParseException
    {
       
         DataSourceDataValueIterator dsdvi =
             new DataSourceDataValueIterator(result.getDataSource());
         dsdvi.setNumBlocksPerCall(numberBlocksPerCall);
         Reader reader = new DataValueReader(dsdvi, 1);       
         WebRowSetToResultSet converter = new WebRowSetToResultSet(reader);
         converter.setResultSetType(ResultSet.TYPE_FORWARD_ONLY);
         return converter.getResultSet();
    }
View Full Code Here

    private static final Logger LOG = Logger.getLogger(Util.class.getName());
   
  public static ResultSet getAsResultSet(Result result, int numberBlocksPerCall){
   
     DataSourceDataValueIterator dsdvi =
       new DataSourceDataValueIterator(result.getDataSource());
          dsdvi.setNumBlocksPerCall(numberBlocksPerCall);
          Reader reader = new DataValueReader(dsdvi, 1);       
          WebRowSetToResultSet converter = new WebRowSetToResultSet(reader);
          converter.setResultSetType(ResultSet.TYPE_FORWARD_ONLY);
          ResultSet rs = null;
          try {
View Full Code Here

TOP

Related Classes of uk.org.ogsadai.client.toolkit.DataSourceDataValueIterator

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.