Examples of reset()


Examples of org.jnetpcap.packet.format.JFormatter.reset()

   *
   * @return String with summary of the header
   */
  public String toString() {
    JFormatter out = JPacket.getFormatter();
    out.reset();
    try {
      out.format(this);
    } catch (IOException e) {
      throw new IllegalStateException("Unexpected StringBuilder IO error");
    }
View Full Code Here

Examples of org.jnetpcap.util.config.ConfigString.reset()

    ConfigString string = new ConfigString("'${A.A}'", variables, properties);
    assertTrue("sub failed in expand", string.expand("", variables,
        properties));
    assertEquals("'${A.A}'", string.toString());

    string.reset(); // Reintialize
  }

  /**
   * Test quotes twice.
   */
 
View Full Code Here

Examples of org.jnode.driver.input.PointerInterpreter.reset()

        super.startDevice();
        // Make sure all queues are empty
        bus.flush();
        final PointerInterpreter interpreter = getPointerInterpreter();
        if (interpreter != null) {
            interpreter.reset();
        }
    }

    /**
     * @see org.jnode.driver.Driver#stopDevice()
View Full Code Here

Examples of org.jquantlib.math.statistics.ConvergenceStatistics.reset()

              fail("wrong number of samples in convergence table"
                         + "\n    calculated: " + calculatedSamples
                         + "\n    expected:   " + expectedSampleSize1);
        }

        stats.reset();
        stats.add(1.0);
        stats.add(2.0);
        stats.add(3.0);
        stats.add(4.0);
View Full Code Here

Examples of org.jruby.embed.io.ReaderInputStream.reset()

    public void testReset() throws Exception {
        logger1.info("reset");
        ReaderInputStream instance = new ReaderInputStream(new FileReader(filename));
        int readlimit = 0;
        instance.mark(readlimit);
        instance.reset();
        instance.close();
    }

    /**
     * Test of skip method, of class ReaderInputStream.
View Full Code Here

Examples of org.jruby.ext.openssl.impl.BIO.reset()

        arg = OpenSSLImpl.to_der_if_possible(arg);
        BIO input = obj2bio(arg);
        try {
            p7 = org.jruby.ext.openssl.impl.PKCS7.readPEM(input);
            if (p7 == null) {
                input.reset();
                p7 = org.jruby.ext.openssl.impl.PKCS7.fromASN1(input);
            }
        } catch (IOException ioe) {
            throw newPKCS7Error(getRuntime(), ioe.getMessage());
        } catch (PKCS7Exception pkcs7e) {
View Full Code Here

Examples of org.json.simple.parser.JSONParser.reset()

        parser.parse(StrMovieData, finder, true);
        if(finder.isFound()){
          finder.setFound(false);
          FinalData.put(Data, finder.getValue().toString().trim());
        }
        parser.reset();
      }
      catch(ParseException pe){// TODO add an error for Unavailable service
        return null;
      }
   
View Full Code Here

Examples of org.jsurveylib.Survey.reset()

    @Test
    public void goToPageReset() throws Exception {
        Survey survey = new Survey(new XMLSurveyReader(new File("src\\test\\org\\jsurveylib\\model\\script\\gotopagefiles\\gotopage.xml")));
        goToPageTest(survey);
        survey.reset();
        goToPageTest(survey);
    }

    private void goToPageTest(Survey survey) {
        Question q = survey.getQuestionByID("pageJump");
View Full Code Here

Examples of org.jugile.proto2.domain.PersonCollection.reset()

    }
    for (Person p : pc) {
      print("p: " + p);
    }
   
    pc.reset();
    List<Person> res = null;
    res = pc.page(0, 5, "id");
    assertEquals(true,pc.hasNextPage());
    assertEquals(false,pc.hasPrevPage());
    res = pc.page(1, 5, "id");
View Full Code Here

Examples of org.kitesdk.morphline.shaded.com.google.code.regexp.Matcher.reset()

            break;
          }
        }       
        int numMatches = 0;
        for (Object value : values) {
          matcher.reset(value.toString());
          if (!findSubstrings) {
            if (matcher.matches()) {
              numMatches++;
              if (numMatches > maxMatches) {
                LOG.debug("grok failed because it found too many matches for values: {} for grok command: {}",
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.