Examples of readBoolean()


Examples of org.lealone.value.Transfer.readBoolean()

                } else {
                    s.traceOperation("SESSION_PREPARE", id);
                    transfer.writeInt(SessionRemote.SESSION_PREPARE).writeInt(id).writeString(sql);
                }
                s.done(transfer);
                isQuery = transfer.readBoolean();
                readonly = transfer.readBoolean();
                int paramCount = transfer.readInt();
                if (createParams) {
                    parameters.clear();
                    for (int j = 0; j < paramCount; j++) {
View Full Code Here

Examples of org.lilyproject.bytes.api.DataInput.readBoolean()

        dataOutput.writeVInt(Math.abs(i));
        dataOutput.writeVLong(Math.abs(l));

        byte[] data = dataOutput.toByteArray();
        DataInput dataInput = new DataInputImpl(data);
        Assert.assertEquals(b, dataInput.readBoolean());
        Assert.assertEquals(bytes[0], dataInput.readByte());
        Assert.assertArrayEquals(bytes, dataInput.readBytes(10));
        Assert.assertEquals(d, dataInput.readDouble(), 0.0001);
        Assert.assertEquals(f, dataInput.readFloat(), 0.0001);
        Assert.assertEquals(i, dataInput.readInt());
View Full Code Here

Examples of org.lilyproject.bytes.impl.DataInputImpl.readBoolean()

        dataOutput.writeVInt(Math.abs(i));
        dataOutput.writeVLong(Math.abs(l));

        byte[] data = dataOutput.toByteArray();
        DataInput dataInput = new DataInputImpl(data);
        Assert.assertEquals(b, dataInput.readBoolean());
        Assert.assertEquals(bytes[0], dataInput.readByte());
        Assert.assertArrayEquals(bytes, dataInput.readBytes(10));
        Assert.assertEquals(d, dataInput.readDouble(), 0.0001);
        Assert.assertEquals(f, dataInput.readFloat(), 0.0001);
        Assert.assertEquals(i, dataInput.readInt());
View Full Code Here

Examples of org.msgpack.unpacker.BufferUnpacker.readBoolean()

  MessagePack msgpack = new MessagePack();
  BufferPacker packer = msgpack.createBufferPacker();
  packer.writeBoolean(v);
  byte[] bytes = packer.toByteArray();
  BufferUnpacker unpacker = msgpack.createBufferUnpacker(bytes);
  boolean ret = unpacker.readBoolean();
  assertEquals(v, ret);
    }

    @Test @Override
    public void testByte() throws Exception {
View Full Code Here

Examples of org.msgpack.unpacker.Converter.readBoolean()

  MessagePack msgpack = new MessagePack();
        Unconverter packer = new Unconverter(msgpack);
        packer.writeBoolean(v);
        Value r = packer.getResult();
        Converter unpacker = new Converter(msgpack, r);
        boolean ret = unpacker.readBoolean();
        assertEquals(v, ret);
    }

    @Test @Override
    public void testByte() throws Exception {
View Full Code Here

Examples of org.msgpack.unpacker.Unpacker.readBoolean()

  MessagePack msgpack = new JSON();
  BufferPacker packer = msgpack.createBufferPacker();
  packer.writeBoolean(v);
  byte[] bytes = packer.toByteArray();
        Unpacker unpacker = msgpack.createBufferUnpacker(bytes);
  boolean ret = unpacker.readBoolean();
  assertEquals(v, ret);
    }

    @Test @Override
    public void testByte() throws Exception {
View Full Code Here

Examples of org.openrdf.http.client.connections.HTTPRequest.readBoolean()

    HTTPRequest request = createRequest();

    try {
      request.acceptBoolean();
      execute(request);
      return request.readBoolean();
    }
    catch (NoCompatibleMediaType e) {
      throw new UnsupportedRDFormatException(e);
    }
    catch (IOException e) {
View Full Code Here

Examples of org.voltdb.messaging.FastDeserializer.readBoolean()

            m_hostId = fd.readInt();
            m_hostname = fd.readString();
            m_clusterName = fd.readString();
            m_databaseName = fd.readString();
            m_tableName = fd.readString();
            m_isReplicated = fd.readBoolean();
            if (!m_isReplicated) {
                m_partitionIds = (int[]) fd.readArray(int.class);
                if (!m_completed) {
                    for (Integer partitionId : m_partitionIds) {
                        m_corruptedPartitions.add(partitionId);
View Full Code Here

Examples of rocket.serialization.client.ObjectInputStream.readBoolean()

      try {
        final SerializationFactory serializationFactory = this.getSerializationFactory();
        final String stream = response.getText();
        final ObjectInputStream objectInputStream = serializationFactory.createObjectInputStream(stream);
        final boolean exceptionWasThrown = objectInputStream.readBoolean();
        final Object result = objectInputStream.readObject();

        if (exceptionWasThrown) {
          callback.onFailure((Throwable) result);
          break;
View Full Code Here

Examples of util.io.BufferedRandomAccessFile.readBoolean()

          mValid = false;
          checkValid();
        }
      }

      mDayProgram.setLastProgramHadEndOnUpdate(dataFile.readBoolean());

      Date date = Date.readData(dataFile);
      Channel channel = Channel.readData(dataFile, false);

      boolean timeLimited = channel.isTimeLimited();
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.