Examples of available()


Examples of org.aspectj.apache.bcel.util.ByteSequence.available()

    /*
     * Pass 1: Create an object for each byte code and append them to the list.
     */
    try {
      while (bytes.available() > 0) {
        // Remember byte offset and associate it with the instruction
        int off = bytes.getIndex();
        pos[count] = off;

        /*
 
View Full Code Here

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

        try {
            assertFalse(callbackCalled);
            assertEquals(5, in.available());
            assertEquals(5, in.skip(5));
            assertFalse(callbackCalled);
            assertEquals(0, in.available());
            assertEquals(0, in.skip(1));
            assertFalse(callbackCalled); // The contract of skip() doesn't let
                                         // us definitively say that we're at
                                         // the EOF, so the callback won't get
                                         // called until we read
View Full Code Here

Examples of org.bouncycastle.asn1.ASN1InputStream.available()

              DERObjectIdentifier oid = (DERObjectIdentifier) seq2.getObjectAt(0);
              if ("2.5.29.17".equals(oid.getId())) {  //SubjectAN
                try {
                  DEROctetString dos = (DEROctetString) seq2.getObjectAt(2);
                  ASN1InputStream ais = new ASN1InputStream(new ByteArrayInputStream(dos.getOctets()));
                  while (ais.available()>0) {
                      DERSequence seq3 = (DERSequence) ais.readObject();
                      Enumeration enum1 = seq3.getObjects();
                      while (enum1.hasMoreElements()) {
                        DERTaggedObject dto = (DERTaggedObject) enum1.nextElement();
                        if (dto.getTagNo() == 0) {
View Full Code Here

Examples of org.camunda.bpm.engine.runtime.CaseExecutionQuery.available()

      .withCaseDefinitionByKey("oneMilestoneCase")
      .create();

    CaseExecutionQuery query = caseService.createCaseExecutionQuery();

    query.available();

    verifyQueryResults(query, 1);

  }
View Full Code Here

Examples of org.eclipse.jetty.spdy.api.DataInfo.available()

        });

        DataInfo dataInfo = exchanger.exchange(null, 5, TimeUnit.SECONDS);
        checkThatWeAreFlowControlStalled(exchanger);

        Assert.assertEquals(windowSize, dataInfo.available());
        Assert.assertEquals(0, dataInfo.consumed());
        dataInfo.asByteBuffer(true);

        dataInfo = exchanger.exchange(null, 5, TimeUnit.SECONDS);
        checkThatWeAreFlowControlStalled(exchanger);
View Full Code Here

Examples of org.exist.storage.BrokerPool.available()

                    (String) conf.getProperty(BrokerPool.PROPERTY_DATA_DIR) +
                    "</td></tr>" );
                output.println( "<tr><td>Active instances:</td><td>" +
                    pool.countActiveBrokers() + "</td></tr>" );
                output.println( "<tr><td>Available instances:</td><td>" +
                    pool.available() + "</td></tr>" );
                output.println( "</table>" );
            }
            output.print( "<p><form action=\"" );
            output.print( response.encodeURL( request.getRequestURI() ) );
            output.println( "\" method=\"GET\">" );
View Full Code Here

Examples of org.exist.storage.io.VariableByteArrayInput.available()

                        final Value value = dbTokens.get(key);
                        if (value == null)
                            {continue;}
                        //Add its data to the new list
                        final VariableByteArrayInput is = new VariableByteArrayInput(value.getData());
                        while (is.available() > 0) {
                            final int storedDocId = is.readInt();
                            final byte storedSection = is.readByte();
                            final int termCount = is.readInt();
                            //Read (variable) length of node IDs + frequency + offsets
                            final int length = is.readFixedInt();
View Full Code Here

Examples of org.exist.storage.io.VariableByteInput.available()

                {WordRef.decode(key, word);}
            else
                {QNameWordRef.decode(key, word);}
            if (matcher.matches(word)) {
                try {
                    while (is.available() > 0) {
                        if(context != null)
                            {context.proceed();}
                        final int storedDocId = is.readInt();
                        final byte storedSection = is.readByte();
                        final int termCount = is.readInt();
View Full Code Here

Examples of org.fusesource.hawtbuf.DataByteArrayInputStream.available()

        QoS qos = qos();
        if(qos != QoS.AT_MOST_ONCE) {
            messageId = is.readShort();
        }
        ArrayList<Topic> list = new ArrayList<Topic>();
        while(is.available() > 0) {
            Topic topic = new Topic(MessageSupport.readUTF(is), QoS.values()[is.readByte()]);
            list.add(topic);
        }
        topics = list.toArray(new Topic[list.size()]);
        return this;
View Full Code Here

Examples of org.glyptodon.guacamole.io.GuacamoleReader.available()

                                    // Buffer message
                                    buffer.append(readMessage);

                                    // Flush if we expect to wait or buffer is getting full
                                    if (!reader.available() || buffer.length() >= BUFFER_SIZE) {
                                        connection.sendMessage(buffer.toString());
                                        buffer.setLength(0);
                                    }

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