Examples of writeBoolean()


Examples of org.msgpack.packer.Packer.writeBoolean()

    @Override
    public void testBoolean(boolean v) throws Exception {
  MessagePack msgpack = new MessagePack();
  ByteArrayOutputStream out = new ByteArrayOutputStream();
  Packer packer = msgpack.createPacker(out);
  packer.writeBoolean(v);
  ByteArrayInputStream in = new ByteArrayInputStream(out.toByteArray());
  Unpacker unpacker = msgpack.createUnpacker(in);
  boolean ret = unpacker.readBoolean();
  assertEquals(v, ret);
    }
View Full Code Here

Examples of org.msgpack.packer.Packer.writeBoolean()

    @Override
    public void testBoolean(boolean v) throws Exception {
  MessagePack msgpack = new MessagePack();
  ByteArrayOutputStream out = new ByteArrayOutputStream();
  Packer packer = msgpack.createPacker(out);
  packer.writeBoolean(v);
  byte[] bytes = out.toByteArray();
  BufferUnpacker unpacker = msgpack.createBufferUnpacker(bytes);
  Value value = unpacker.readValue();
  assertTrue(value.isBoolean());
  boolean ret = new Converter(value).readBoolean();
View Full Code Here

Examples of org.msgpack.packer.Packer.writeBoolean()

    @Override
    public void testBoolean(boolean v) throws Exception {
  MessagePack msgpack = new MessagePack();
  ByteArrayOutputStream out = new ByteArrayOutputStream();
  Packer packer = msgpack.createPacker(out);
  packer.writeBoolean(v);
  byte[] bytes = out.toByteArray();
  BufferUnpacker unpacker = msgpack.createBufferUnpacker(bytes);
  boolean ret = unpacker.readBoolean();
  assertEquals(v, ret);
    }
View Full Code Here

Examples of org.msgpack.packer.Unconverter.writeBoolean()

    @Override
    public void testBoolean(boolean v) throws Exception {
  MessagePack msgpack = new MessagePack();
        Unconverter packer = new Unconverter(msgpack);
        packer.writeBoolean(v);
        Value r = packer.getResult();
        Converter unpacker = new Converter(msgpack, r);
        Value ret = unpacker.readValue();
        assertEquals(r, ret);
    }
View Full Code Here

Examples of org.msgpack.packer.Unconverter.writeBoolean()

    @Override
    public void testBoolean(boolean v) throws Exception {
  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);
    }
View Full Code Here

Examples of org.nasutekds.server.protocols.asn1.ASN1Writer.writeBoolean()

     ASN1Writer writer = ASN1.getWriter(builder);

     writer.writeStartSequence(OP_TYPE_BIND_REQUEST);
     writer.writeInteger(3);
     writer.writeOctetString(dn);
     writer.writeBoolean(true);
     writer.writeStartSequence(TYPE_AUTHENTICATION_SASL);
     writer.writeOctetString(SASL_MECHANISM_PLAIN);
     writer.writeOctetString(pwd);
     writer.writeEndSequence();
     writer.writeEndSequence();
View Full Code Here

Examples of org.red5.io.amf.Output.writeBoolean()

    } else {
      output = new org.red5.io.amf3.Output(buf);
    }
    for (IRemotingHeader header : headers) {
      Output.putString(buf, IRemotingHeader.PERSISTENT_HEADER);
      output.writeBoolean(false);
      Map<String, Object> param = new HashMap<String, Object>();
      param.put("name", header.getName());
      param.put("mustUnderstand", header.getMustUnderstand() ? Boolean.TRUE : Boolean.FALSE);
      param.put("data", header.getValue());
      Serializer.serialize(output, param);
View Full Code Here

Examples of org.voltdb.messaging.FastSerializer.writeBoolean()

        fs.writeInt(hostId);
        fs.writeString(hostname);
        fs.writeString(clusterName);
        fs.writeString(databaseName);
        fs.writeString(tableName.toUpperCase());
        fs.writeBoolean(isReplicated);
        if (!isReplicated) {
            fs.writeArray(partitionIds);
            fs.writeInt(numPartitions);
        }
        final BBContainer container = fs.getBBContainer();
View Full Code Here

Examples of rocket.serialization.client.ObjectOutputStream.writeBoolean()

      exceptionWasThrown = true;
      result = new RpcException(throwable.getMessage());
    }

    // write the result...
    outputStream.writeBoolean(exceptionWasThrown);
    outputStream.writeObject(result);

    return outputStream.getText();
  }
View Full Code Here

Examples of sun.rmi.server.MarshalOutputStream.writeBoolean()

   
    //Write results
    log.log (Level.FINEST, "Writing results");
    if (lock instanceof Lock) {
      log.log (Level.FINE, "Process is not complete");
      objOut.writeBoolean (false);
    }
    else {
      log.log (Level.FINE, "Process is complete");
      objOut.writeBoolean (true);
    }
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.