Examples of reset()


Examples of org.apache.mina.common.ByteBuffer.reset()

        ByteBuffer in = ByteBuffer.allocate(16);

        // Make sure the overflow exception is not thrown until
        // the delimiter is encountered.
        in.putString("A", encoder).flip().mark();
        decoder.decode(session, in.reset().mark(), out);
        Assert.assertEquals(0, out.getMessageQueue().size());
        decoder.decode(session, in.reset().mark(), out);
        Assert.assertEquals(0, out.getMessageQueue().size());
        decoder.decode(session, in.reset().mark(), out);
        Assert.assertEquals(0, out.getMessageQueue().size());
View Full Code Here

Examples of org.apache.mina.common.IoBuffer.reset()

        IoBuffer in = IoBuffer.allocate(16);

        // Make sure the overflow exception is not thrown until
        // the delimiter is encountered.
        in.putString("A", encoder).flip().mark();
        decoder.decode(session, in.reset().mark(), out);
        Assert.assertEquals(0, session.getDecoderOutputQueue().size());
        decoder.decode(session, in.reset().mark(), out);
        Assert.assertEquals(0, session.getDecoderOutputQueue().size());
        decoder.decode(session, in.reset().mark(), out);
        Assert.assertEquals(0, session.getDecoderOutputQueue().size());
View Full Code Here

Examples of org.apache.mina.core.buffer.IoBuffer.reset()

                IoBuffer buf = (IoBuffer)message;

                // The first unwritten empty buffer must be
                // forwarded to the filter chain.
                if (buf.hasRemaining()) {
                    buf.reset();
                    failedRequests.add(req);
                } else {
                    IoFilterChain filterChain = session.getFilterChain();
                    filterChain.fireMessageSent(req);
                }
View Full Code Here

Examples of org.apache.myfaces.application.jsp.ServletViewResponseWrapper.reset()

                }
                else
                {
                    component.setValue(wrappedOutput);
                }
                wrappedResponse.reset();
            }
        }
        return component;
    }
View Full Code Here

Examples of org.apache.myfaces.application.jsp.ViewResponseWrapper.reset()

                }
                else
                {
                    component.setValue(wrappedOutput);
                }
                wrappedResponse.reset();
            }
        }
        return component;
    }   
   
View Full Code Here

Examples of org.apache.myfaces.custom.tree2.TreeWalker.reset()

     * Code taken from org.apache.myfaces.custom.tree2.UITreeData
     * @param expanded
     */
    private void toggleAll(boolean expanded) {
        TreeWalker walker = htmlTree.getDataModel().getTreeWalker();
        walker.reset();

        TreeState state =  htmlTree.getDataModel().getTreeState();
        walker.setCheckState(false);
        walker.setTree(htmlTree);

View Full Code Here

Examples of org.apache.myfaces.shared.util.FastWriter.reset()

                {
                    FastWriter xmlAsWriter = new FastWriter();
                    for (int i = 0; i < documentList.size(); i++)
                    {
                        Document document = documentList.get(i);
                        xmlAsWriter.reset();
                        try
                        {
                            DOMSource source = new DOMSource(document);
                            StreamResult result = new StreamResult(xmlAsWriter);
View Full Code Here

Examples of org.apache.myfaces.tobago.renderkit.LabelWithAccessKey.reset()

    String radioId = radio.getClientId(facesContext);
    String onClickPrefix = "menuSetRadioValue('" + radioId + "', '";
    String onClickPostfix = onclick != null ? "') ; " + onclick : "";
    for (SelectItem item : items) {
      final String labelText = item.getLabel();
      label.reset();
      if (labelText != null) {
        if (labelText.indexOf(LabelWithAccessKey.INDICATOR) > -1) {
          label.setup(labelText);
        } else {
          label.setText(labelText);
View Full Code Here

Examples of org.apache.olingo.odata2.ref.model.DataContainer.reset()

  protected static final String PHOTO_DEFAULT_IMAGE = Base64.encodeBase64String(new Photo(0, null, null).getImage());

  @Override
  protected ODataSingleProcessorService createService() {
    DataContainer dataContainer = new DataContainer();
    dataContainer.reset();
    ODataSingleProcessor processor = new ListsProcessor(new ScenarioDataSource(dataContainer));
    EdmProvider provider = new ScenarioEdmProvider();

    return new ODataSingleProcessorService(provider, processor) {};
  }
View Full Code Here

Examples of org.apache.openjpa.datacache.CacheStatistics.reset()

    }

    public void reset() {
        CacheStatistics stats = getStatistics();
        if (stats != null)
            stats.reset();
    }

    public Date sinceDate() {
        CacheStatistics stats = getStatistics();
        if (stats != null)
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.