Examples of rewind()


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

    }

    private static boolean checkRequest(IoBuffer message) {
        IoBuffer buff = message;
        boolean check = buff.get() == 1;
        buff.rewind();
        return check;
    }

    private static boolean checkResponse(IoBuffer message) {
        IoBuffer buff = message;
View Full Code Here

Examples of org.apache.qpid.proton.codec.jni.JNIData.rewind()

    private void decodeBody()
    {
        SWIGTYPE_p_pn_data_t body = Proton.pn_message_body(_impl);
        JNIData data = new JNIData(body);
        data.rewind();

        org.apache.qpid.proton.codec.Data.DataType dataType = data.next();
        Section section;
        if(dataType == null)
        {
View Full Code Here

Examples of org.apache.tapestry.FormSupport.rewind()

        form.setBody(body);

        replayControls();

        fs.rewind();

        verifyControls();
    }

    public void testRewindMismatch()
View Full Code Here

Examples of org.apache.tapestry.form.RequirableFieldSupport.rewind()

        form.getElementId(this);

        RequirableFieldSupport requirableFieldSupport = getRequirableFieldSupport();
       
        if (form.isRewinding())
            requirableFieldSupport.rewind(this, writer, cycle);

        // Don't do any additional work if rewinding
        // (some other action or form on the page).

        if (!cycle.isRewinding())
View Full Code Here

Examples of org.apache.tika.utils.RereadableInputStream.rewind()

                    int byteRead = ris.read();
                    assertEquals("Pass = " + pass + ", byte num should be "
                            + byteNum + " but is " + byteRead + ".", byteNum,
                            byteRead);
                }
                ris.rewind();
            }
        } finally {
            // The RereadableInputStream should close the original input
            // stream (if it hasn't already).
            ris.close();
View Full Code Here

Examples of org.camunda.spin.impl.util.RewindableInputStream.rewind()

      if (format.getReader().canRead(rewindableStream)) {
        matchingDataFormat = (DataFormat<T>) format;
      }

      try {
        rewindableStream.rewind();
      } catch (IOException e) {
        throw LOG.unableToReadInputStream(e);
      }

    }
View Full Code Here

Examples of org.omg.DynamicAny.DynSequence.rewind()

    {
        try
        {
            final DynSequence _dynSequence = DynSequenceHelper.narrow(toDynAny(sequence));

            _dynSequence.rewind();

            do
            {
                final DynAny _currentComponent = _dynSequence.current_component();
View Full Code Here

Examples of org.omg.DynamicAny.DynStruct.rewind()

                logger_.debug("Any is a struct");

                final DynStruct _dynStruct = DynStructHelper.narrow(any);
                String _currentName;

                _dynStruct.rewind();

                do
                {
                    _currentName = _dynStruct.current_member_name();
View Full Code Here

Examples of org.teavm.classlib.impl.charset.ByteBuffer.rewind()

        byte[] destBytes = new byte[TMath.max(16, TMath.min(s.length, 1024))];
        ByteBuffer dest = new ByteBuffer(destBytes);
        while (!src.end()) {
            charset.encode(src, dest);
            write(destBytes, 0, dest.position());
            dest.rewind(0);
        }
    }

    public void print(char c) {
        buffer[0] = c;
View Full Code Here

Examples of solver.search.strategy.decision.Decision.rewind()

                // 4. need to replace the duplicated decision with the correct one
                for (int i = 0; i < path.size(); i++) {
                    Decision dec = path.get(i);
                    boolean forceNext = !dec.hasNext();
                    dec.rewind();
                    if (forceNext) dec.buildNext();
                    dec.setPrevious(null); // useless .. but ... you know
                }

            } else {
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.