Examples of reset()


Examples of co.cask.cdap.internal.io.ByteBufferInputStream.reset()

    return new Function<ByteBuffer, T>() {
      @Nullable
      @Override
      public T apply(ByteBuffer input) {
        byteBufferInput.reset(input);
        try {
          final Schema sourceSchema = schemaCache.get(input);
          Preconditions.checkNotNull(sourceSchema, "Fail to find source schema.");
          return datumReader.read(decoder, sourceSchema);
        } catch (IOException e) {
View Full Code Here

Examples of co.cask.tigon.internal.io.ByteBufferInputStream.reset()

    return new Function<ByteBuffer, T>() {
      @Nullable
      @Override
      public T apply(ByteBuffer input) {
        byteBufferInput.reset(input);
        try {
          final Schema sourceSchema = schemaCache.get(input);
          Preconditions.checkNotNull(sourceSchema, "Fail to find source schema.");
          return datumReader.read(decoder, sourceSchema);
        } catch (IOException e) {
View Full Code Here

Examples of co.paralleluniverse.common.io.Checksum.reset()

                final byte[] hash = chksm.getChecksum();

                object.write(line.data);
                line.data.flip();

                chksm.reset();
                chksm.update(line.data);
                line.data.rewind();

                if (!Arrays.equals(hash, chksm.getChecksum()))
                    return true;
View Full Code Here

Examples of com.Ostermiller.Syntax.Lexer.reset()

    private Lexer getLexerFromClass(String lexerType) throws IOException, InvocationTargetException {
        Lexer lexer = null;
        if (lexerType != null){
            if (lexers.containsKey(lexerType)){
                lexer = (Lexer)lexers.get(lexerType);
                lexer.reset(in, 0, 0, 0);
            } else {      
                try {
                    lexer = (Lexer)(
                        Class.forName(lexerType)
                        .getDeclaredConstructor(new Class[] {Class.forName("java.io.Reader")})
View Full Code Here

Examples of com.adito.jdbc.JDBCPreparedStatement.reset()

                while (t.hasMoreTokens()) {
                    String path = t.nextToken();
                    ps.setString(1, path);
                    ps.setInt(2, id);
                    ps.execute();
                    ps.reset();
                }
                ps = db.getStatement(ps, "createWebForward.reverseProxyOptions.insert");
                ps.setInt(1, webForward.getResourceId());
                ps.setString(2, ((ReverseProxyWebForward) webForward).getAuthenticationUsername());
                ps.setString(3, Util.emptyWhenNull(((ReverseProxyWebForward) webForward).getAuthenticationPassword()));
View Full Code Here

Examples of com.aelitis.azureus.core.speedmanager.SpeedManager.reset()

        new Listener()
      {
            public void
        handleEvent(Event event)
            {
              sm.reset();
            }
        });
       
     sm.addListener(
             new SpeedManagerListener()
View Full Code Here

Examples of com.aelitis.azureus.core.subs.Subscription.reset()

              isEnabled==null?true:isEnabled.booleanValue(),
              autoDownload==null?false:autoDownload.booleanValue());

          if ( changed ){
           
            subs.reset();
           
            try{
              subs.getManager().getScheduler().downloadAsync(subs, true);
             
            }catch( Throwable e ){
View Full Code Here

Examples of com.alibaba.druid.filter.stat.StatFilter.reset()

        final ConcurrentMap<String, DataSourceProxyImpl> dataSources = DruidDriver.getProxyDataSources();
        for (DataSourceProxyImpl dataSource : dataSources.values()) {
            for (Filter filter : dataSource.getConfig().getFilters()) {
                if (filter instanceof StatFilter) {
                    StatFilter countFilter = (StatFilter) filter;
                    countFilter.reset();
                }
            }
        }
    }
View Full Code Here

Examples of com.alibaba.druid.stat.JdbcDataSourceStat.reset()

        JdbcDataSourceStat dataSourceStat = dataSource.getDataSourceStat();
       
        StatFilter filter = new StatFilter();
        filter.init(dataSource);

        dataSourceStat.reset();

        Assert.assertNull(StatFilter.getStatFilter(dataSource));
        Assert.assertNull(dataSourceStat.getSqlStat(Integer.MAX_VALUE));
        Assert.assertNull(dataSourceStat.getConnectionStat().getConnectLastTime());
View Full Code Here

Examples of com.alibaba.druid.stat.JdbcSqlStat.reset()

        conn.close();

        Assert.assertEquals(2, sqlStat.getReaderOpenCount());

        sqlStat.reset();
        Assert.assertEquals(0, sqlStat.getReaderOpenCount());
    }

    public void test_stat_1() throws Exception {
        Connection conn = dataSource.getConnection();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.