Examples of reset()


Examples of org.apache.xml.security.stax.ext.OutputProcessorChain.reset()

                        //output all non encrypted headers until...
                        if (!entry.getKey().isEncrypted()) {
                            Deque<XMLSecEvent> xmlSecEvents = entry.getValue();
                            while (!xmlSecEvents.isEmpty()) {
                                XMLSecEvent event = xmlSecEvents.pop();
                                subOutputProcessorChain.reset();
                                subOutputProcessorChain.processEvent(event);
                            }
                            //remove the actual header so that it won't be output twice in the loop below
                            entryIterator.remove();
                        }
View Full Code Here

Examples of org.apache.xml.serializer.Serializer.reset()

        }

        // Obtain a reference to the serializer to use
        // Serializer serializer = getXMLSerializer(xmlVersion);
        Serializer serializer = fXMLSerializer;
        serializer.reset();
       
        // If the node has not been seen
        if ( nodeArg != fVisitedNode) {
            // Determine the XML Document version of the Node
            String xmlVersion = getXMLVersion(nodeArg);
View Full Code Here

Examples of org.apache.xml.utils.FastStringBuffer.reset()

          {
            if (buf.length() > 0)
            {
              QName qname = QName.getQNameFromString(buf.toString());
              v.addElement(qname);
              buf.reset();
            }
            continue;
          }
        }
        else if ('{' == c)
View Full Code Here

Examples of org.apache.xpath.objects.XNodeSet.reset()

      refNodes = new XNodeSet(xctxt.getDTMManager()) {
        public void setRoot(int nodeHandle, Object environment) {
          // Root cannot be set on non-iterated node sets. Ignore it.
        }
      };
      refNodes.reset();
    }

    return refNodes;
  }
View Full Code Here

Examples of org.apache.zookeeper.test.ClientBase.CountdownWatcher.reset()

        final String data = "Data to be read in RO mode";
        final String node = "/tnode";
        zk.create(node, data.getBytes(), ZooDefs.Ids.OPEN_ACL_UNSAFE,
                CreateMode.PERSISTENT);

        watcher.reset();
        qu.shutdown(2);
        watcher.waitForConnected(CONNECTION_TIMEOUT);

        // read operation during r/o mode
        String remoteData = new String(zk.getData(node, false, null));
View Full Code Here

Examples of org.archive.wayback.core.Resource.reset()

      // TODO: make ThreadLocal:
      byte buffer[] = new byte[FRAMESET_SCAN_BUFFER_SIZE];

      decodedResource.mark(FRAMESET_SCAN_BUFFER_SIZE);
      int amtRead = decodedResource.read(buffer);
      decodedResource.reset();

      if(amtRead > 0) {
        StringBuilder foo = new StringBuilder(new String(buffer,charSet));
        int frameIdx = TagMagix.getEndOfFirstTag(foo, "FRAMESET");
        if(frameIdx != -1) {
View Full Code Here

Examples of org.arquillian.spacelift.process.Sentence.reset()

                        System.out.println(interaction.transform(sentence));
                    }
                    if (interaction.shouldOutputToErr(sentence)) {
                        System.err.println(interaction.transform(sentence));
                    }
                    sentence.reset();
                }
            }

            // handle last line
            if (!sentence.isEmpty()) {
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.compiler.codegen.CodeStream.reset()

    int codeAttributeOffset = classFile.contentsOffset;
    classFile.generateCodeAttributeHeader();
    CodeStream codeStream = classFile.codeStream;
    this.resolve(classScope);

    codeStream.reset(this, classFile);
    TypeDeclaration declaringType = classScope.referenceContext;

    // initialize local positions - including initializer scope.
    MethodScope staticInitializerScope = declaringType.staticInitializerScope;
    staticInitializerScope.computeLocalVariablePositions(0, codeStream);
View Full Code Here

Examples of org.auraframework.impl.context.LoggingContextImpl.Timer.reset()

        assertEquals("Running timer has a totalTime", -1, timer.getTime());
       
        timer.stop();
        assertTrue("Completed timer has no totalTime", timer.getTime() >= 0);
       
        timer.reset();
        assertEquals("Reseted timer has a totalTime", -1, timer.getTime());
    }
   
    public void testNesting() throws Exception {
        Timer timer = new Timer("foo");
View Full Code Here

Examples of org.auraframework.util.LimitedLengthInputStream.reset()

            // Ensure that mark is unsupported (apologies to anyone named Mark)
            assertFalse(in.markSupported());

            // Reset isn't supported
            try {
                in.reset();
                fail("reset should have failed");
            } catch (IOException e) {
                assertTrue(e.getMessage().contains("mark not supported"));
            }
        } finally {
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.