Examples of writeString()


Examples of javax.jms.StreamMessage.writeString()

         ObjectMessage om = sessSend.createObjectMessage();
         om.setObject("aardvark");

         StreamMessage sm = sessSend.createStreamMessage();
         sm.writeString("aardvark");

         TextMessage tm = sessSend.createTextMessage("aardvark");

         theProducer.send(m);
         theProducer.send(bm);
View Full Code Here

Examples of net.sf.jpluck.palm.PdbOutputStream.writeString()

      offset += body.length() + 1;
    } else {
      pdb.writeShort(0);
    }
    if (to != null) {
      pdb.writeString(to);
      pdb.writeByte(0);
    }
    if (cc != null) {
      pdb.writeString(cc);
      pdb.writeByte(0);
View Full Code Here

Examples of net.timewalker.ffmq3.common.message.StreamMessageImpl.writeString()

    {
        StreamMessageImpl msg = new StreamMessageImpl();
        setDummyProperties(msg);
       
        msg.writeBoolean(true);
        msg.writeString("foobar");
        msg.writeChar('c');
        msg.writeByte((byte)1);
        msg.writeShort((short)2);
        msg.writeInt(3);
        msg.writeLong(4);
View Full Code Here

Examples of org.activemq.message.ActiveMQStreamMessage.writeString()

  public void testReadString()
  {
    ActiveMQStreamMessage msg = new ActiveMQStreamMessage();
    try {
      byte testByte = (byte)2;
      msg.writeString(new Byte(testByte).toString());
      msg.reset();
      assertTrue(msg.readByte()==testByte);
      msg.clearBody();
      short testShort = 3;
      msg.writeString(new Short(testShort).toString());
View Full Code Here

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

    public void testReadString() {
        ActiveMQStreamMessage msg = new ActiveMQStreamMessage();
        try {
            byte testByte = (byte) 2;
            msg.writeString(new Byte(testByte).toString());
            msg.reset();
            assertTrue(msg.readByte() == testByte);
            msg.clearBody();
            short testShort = 3;
            msg.writeString(new Short(testShort).toString());
View Full Code Here

Examples of org.apache.avro.io.BinaryEncoder.writeString()

        for (RPCPlugin plugin : rpcMetaPlugins) {
          plugin.clientSendRequest(context);      // get meta-data from plugins
        }
        META_WRITER.write(context.requestCallMeta(), out);

        out.writeString(m.getName());             // write message name

        out.flush();
        bbo.append(payload);

        requestBytes = bbo.getBufferList();
View Full Code Here

Examples of org.apache.avro.io.Encoder.writeString()

      ByteBufferOutputStream bbo = new ByteBufferOutputStream();
      // direct because the payload is tiny.
      Encoder out = ENCODER_FACTORY.directBinaryEncoder(bbo, null);
      writeHandshake(out);
      out.writeInt(0);                              // empty metadata
      out.writeString("");                          // bogus message name
      List<ByteBuffer> response =
        getTransceiver().transceive(bbo.getBufferList());
      ByteBufferInputStream bbi = new ByteBufferInputStream(response);
      BinaryDecoder in =
        DecoderFactory.get().binaryDecoder(bbi, null);
View Full Code Here

Examples of org.apache.blur.thirdparty.thrift_0_9_0.protocol.TTupleProtocol.writeString()

      if (struct.isSetDoubleMap()) {
        optionals.set(3);
      }
      oprot.writeBitSet(optionals, 4);
      if (struct.isSetName()) {
        oprot.writeString(struct.name);
      }
      if (struct.isSetStrMap()) {
        {
          oprot.writeI32(struct.strMap.size());
          for (Map.Entry<String, String> _iter183 : struct.strMap.entrySet())
View Full Code Here

Examples of org.apache.hadoop.hive.serde2.thrift.TCTLSeparatedProtocol.writeString()

    prot.writeDouble(234.22);
    prot.writeListEnd();
    prot.writeFieldEnd();

    prot.writeFieldBegin(new TField());
    prot.writeString("hello world!");
    prot.writeFieldEnd();

    prot.writeFieldBegin(new TField());
    prot.writeMapBegin(new TMap());
    prot.writeString("key1");
View Full Code Here

Examples of org.apache.hadoop.oncrpc.XDR.writeString()

    long dirId = status.getFileId();

    XDR xdr_req = new XDR();
    FileHandle handle = new FileHandle(dirId);
    handle.serialize(xdr_req);
    xdr_req.writeString("f1");

    // Remove operation
    REMOVE3Response response = nfsd.remove(xdr_req.asReadOnlyWrap(),
        securityHandler, new InetSocketAddress("localhost", 1234));
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.