Examples of readBoolean()


Examples of org.agilewiki.jid.ReadableBytes.readBoolean()

    @Override
    public Boolean getValue() {
        if (value != null)
            return value;
        ReadableBytes readableBytes = readable();
        value = readableBytes.readBoolean();
        return value;
    }

    /**
     * Returns the number of bytes needed to serialize the persistent data.
View Full Code Here

Examples of org.apache.activemq.command.ActiveMQBytesMessage.readBoolean()

    public void testReadBoolean() {
        ActiveMQBytesMessage msg = new ActiveMQBytesMessage();
        try {
            msg.writeBoolean(true);
            msg.reset();
            assertTrue(msg.readBoolean());
        } catch (JMSException jmsEx) {
            jmsEx.printStackTrace();
            assertTrue(false);
        }
    }
View Full Code Here

Examples of org.apache.activemq.command.ActiveMQStreamMessage.readBoolean()

    public void testReadBoolean() {
        ActiveMQStreamMessage msg = new ActiveMQStreamMessage();
        try {
            msg.writeBoolean(true);
            msg.reset();
            assertTrue(msg.readBoolean());
            msg.reset();
            assertTrue(msg.readString().equals("true"));
            msg.reset();
            try {
                msg.readByte();
View Full Code Here

Examples of org.apache.avro.io.BinaryDecoder.readBoolean()

    if (m.isOneWay() && t.isConnected()) return null; // one-way w/ handshake
       
    context.setResponseCallMeta(META_READER.read(null, in));
   
    if (!in.readBoolean()) {                      // no error
      Object response = readResponse(rm.getResponse(), in);
      context.setResponse(response);
      for (RPCPlugin plugin : rpcMetaPlugins) {
        plugin.clientReceiveResponse(context);
      }
View Full Code Here

Examples of org.apache.avro.io.Decoder.readBoolean()

    m = getRemote().getMessages().get(messageName);
    if (m == null)
      throw new AvroRuntimeException("Not a remote message: "+messageName);
    context.setRequestCallMeta(META_READER.read(null, in));
   
    if (!in.readBoolean()) {                      // no error
      Object response = readResponse(m.getResponse(), in);
      context.setResponse(response);
      for (RPCPlugin plugin : rpcMetaPlugins) {
        plugin.clientReceiveResponse(context);
      }
View Full Code Here

Examples of org.apache.axis2.context.externalize.SafeObjectInputStream.readBoolean()

        //---------------------------------------------------------
        // various simple fields
        //---------------------------------------------------------
        timeOutInMilliSeconds = in.readLong();

        manageSession = in.readBoolean();

        isExceptionToBeThrownOnSOAPFault = (Boolean) in.readObject();
        useSeparateListener = (Boolean) in.readObject();

        //---------------------------------------------------------
View Full Code Here

Examples of org.apache.cassandra.io.DataInputBuffer.readBoolean()

    public static RangeSliceReply read(byte[] body) throws IOException
    {
        DataInputBuffer bufIn = new DataInputBuffer();
        bufIn.reset(body, body.length);
        boolean completed = bufIn.readBoolean();
        int rowCount = bufIn.readInt();
        List<Row> rows = new ArrayList<Row>(rowCount);
        for (int i = 0; i < rowCount; i++)
        {
            rows.add(Row.serializer().deserialize(bufIn));
View Full Code Here

Examples of org.apache.catalina.tribes.io.ReplicationStream.readBoolean()

                session = createSession(null,false, false);
                sessions.remove(session.getIdInternal());
            }
           
           
            boolean hasPrincipal = session_in.readBoolean();
            SerializablePrincipal p = null;
            if ( hasPrincipal )
                p = (SerializablePrincipal)session_in.readObject();
            ((ReplicatedSession)session).readObjectData(session_in);
            if ( hasPrincipal )
View Full Code Here

Examples of org.apache.derby.iapi.services.io.ArrayInputStream.readBoolean()

    ArrayInputStream lrdi = rawDataIn;

    lrdi.setPosition(PAGE_HEADER_OFFSET);
    long spare;

    isOverflowPage  =  lrdi.readBoolean();
    setPageStatus    (lrdi.readByte());
    setPageVersion    (lrdi.readLong());
    slotsInUse      =  lrdi.readUnsignedShort();
    nextId          =  lrdi.readInt();
    generation      =  lrdi.readInt();     // page generation (Future Use)
View Full Code Here

Examples of org.apache.hadoop.fs.FSDataInputStream.readBoolean()

    Text rn = new Text();
    rn.readFields(in);
    HStoreKey midkey = new HStoreKey();
    midkey.readFields(in);
    long fid = in.readLong();
    boolean tmp = in.readBoolean();
    return new Reference(rn, fid, midkey, tmp? Range.top: Range.bottom);
   
  }

  private void createOrFail(final FileSystem fs, final Path p)
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.