Examples of reset()


Examples of gnu.javax.crypto.mode.IMode.reset()

                      {
                        kb[i] = (byte) i;
                      }
                    attrib.put(IMode.STATE, new Integer(IMode.ENCRYPTION));
                    attrib.put(IBlockCipher.KEY_MATERIAL, kb);
                    gnu.reset();
                    gnu.init(attrib);
                    ct1 = new byte[bs];
                    gnu.update(pt, 0, ct1, 0);
                    jce.init(Cipher.ENCRYPT_MODE,
                             new SecretKeySpec(kb, cipherName),
View Full Code Here

Examples of gnu.javax.crypto.pad.IPad.reset()

            // padding algorithm
            if (padName.equalsIgnoreCase(Registry.EME_PKCS1_V1_5_PAD))
              continue;

            pad = PadFactory.getInstance(padName);
            pad.reset();
            pad.init(16);

            byte[] padding = pad.pad(pt, 0, pt.length);
            System.arraycopy(padding, 0, ppt, 42, padding.length);
            attrib.put(IMode.STATE, new Integer(IMode.ENCRYPTION));
View Full Code Here

Examples of gnu.javax.swing.text.html.parser.support.low.ReaderTokenizer.reset()

                    new node(Constants.END), new node(Constants.BEGIN)
                  }
                 );

    ReaderTokenizer rt = new ReaderTokenizer();
    rt.reset(new StringReader(x));

    assertFalse(a.matches(rt));
    assertFalse(b.matches(rt));
    assertTrue(c.matches(rt));
    assertFalse(d.matches(rt));
View Full Code Here

Examples of gnu.trove.list.array.TIntArrayList.reset()

    float furthestDistanceSq = furthestDistance * furthestDistance;
    TIntArrayList nearestIds = new TIntArrayList();
    nearest(p, rootNode, furthestDistanceSq, nearestIds);

    nearestIds.forEach(v);
    nearestIds.reset();
  }

  private void createNearestNDistanceQueue(Point p, int count, PriorityQueue distanceQueue, float furthestDistance) {
    //  return immediately if given an invalid "count" parameter
    if (count <= 0) {
View Full Code Here

Examples of gov.nasa.arc.mct.api.feed.FeedDataArchive.reset()

                JOptionPane.YES_NO_OPTION);
               
        if (confirmationResult == 0) {
            FeedDataArchive dataArchive =PlatformImpl.getInstance().getFeedDataArchive();           
            if (dataArchive != null) {
                dataArchive.reset();
            } else {
                logger.error("DataArchive is null.");
            }
            
            FeedManager feedManager = PlatformImpl.getInstance().getFeedManager();
View Full Code Here

Examples of graphplan.graph.draw.TextDrawVisitor.reset()

      logger.info("*************************************************");
      TextDrawVisitor visitor = new TextDrawVisitor();
      planningGraph.accept(visitor);
      logger.info("Initial Graph is: "+visitor.toString());
      planningGraph.expandGraph();
      visitor.reset();
      planningGraph.accept(visitor);
      logger.info("Expanded Graph is: "+visitor.toString());
     
      logger.info("*************************************************");
     
 
View Full Code Here

Examples of hprose.io.HproseReader.reset()

                (char) HproseTags.TagError + "" +
                (char) HproseTags.TagEnd)) != HproseTags.TagEnd) {
            switch (tag) {
                case HproseTags.TagResult:
                    if (resultMode == HproseResultMode.Normal) {
                        hproseReader.reset();
                        result = hproseReader.unserialize(returnType);
                    }
                    else if (resultMode == HproseResultMode.Serialized) {
                        result = hproseReader.readRaw();
                    }
View Full Code Here

Examples of hprose.io.HproseWriter.reset()

        if (filter != null) ostream = filter.outputFilter(ostream);
        HproseWriter hproseWriter = new HproseWriter(ostream);
        ostream.write(HproseTags.TagCall);
        hproseWriter.writeString(functionName, false);
        if ((arguments != null) && (arguments.length > 0 || byRef)) {
            hproseWriter.reset();
            hproseWriter.writeArray(arguments, false);
            if (byRef) {
                hproseWriter.writeBoolean(true);
            }
        }
View Full Code Here

Examples of htsjdk.samtools.util.StopWatch.reset()

                System.out.println("Mama Mia that's a lot of tokens!!");
            }
        }
        watch.stop();
        System.out.println("StringUtil.split() took " + watch.getElapsedTime());
        watch.reset();
       
        watch.start();
        for (int i=0; i<ITERATIONS; ++i) {
            if (split(text, fields, "\t") > 100) {
                System.out.println("Mama Mia that's a lot of tokens!!");
View Full Code Here

Examples of hudson.plugins.perforce.utils.TimedStreamCloser.reset()

                            
                             timedStreamCloser = new TimedStreamCloser(p4.getInputStream(), timeout);
                             timedStreamCloser.start();

                             while((line = reader.readLine()) != null) {
                                timedStreamCloser.reset();
                                // only check for errors if we have not found one already
                                if (mesgIndex == -1)
                                    mesgIndex = checkAuthnErrors(line);
                                if(filter.reject(line)) continue;
                                lines.add(line);
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.