Examples of writeString()


Examples of org.hornetq.api.core.HornetQBuffer.writeString()

      String str2 = RandomUtil.randomString();
      Double d1 = RandomUtil.randomDouble();
      float f1 = RandomUtil.randomFloat();

      dynamic.writeUTF(str1);
      dynamic.writeString(str2);
      dynamic.writeDouble(d1);
      dynamic.writeFloat(f1);

      LargeMessageControllerImpl readBuffer = splitBuffer(3, dynamic.toByteBuffer().array());
View Full Code Here

Examples of org.hornetq.jms.client.HornetQStreamMessage.writeString()

   public void testReadBooleanFromString() throws Exception
   {
      boolean value = RandomUtil.randomBoolean();
      HornetQStreamMessage message = new HornetQStreamMessage();

      message.writeString(Boolean.toString(value));
      message.reset();

      Assert.assertEquals(value, message.readBoolean());
   }
View Full Code Here

Examples of org.hornetq.jms.tests.message.SimpleJMSStreamMessage.writeString()

      m.writeFloat(2.0F);
      m.writeInt(3);
      m.writeLong(4L);
      m.writeObject("object");
      m.writeShort((short)5);
      m.writeString("stringvalue");

      return m;
   }

   @Override
View Full Code Here

Examples of org.jaudiotagger.tag.datatype.Lyrics3Image.writeString()

        String str = "";
        Lyrics3Image image;

        for (Object image1 : images) {
            image = (Lyrics3Image) image1;
            str += (image.writeString() + Lyrics3v2Fields.CRLF);
        }

        if (str.length() > 2) {
            return str.substring(0, str.length() - 2);
        }
View Full Code Here

Examples of org.jaudiotagger.tag.datatype.Lyrics3Line.writeString()

        Lyrics3Line line;
        String str = "";

        for (Object line1 : lines) {
            line = (Lyrics3Line) line1;
            str += (line.writeString() + Lyrics3v2Fields.CRLF);
        }

        return str;

        //return str.substring(0,str.length()-2); // cut off the last CRLF pair
View Full Code Here

Examples of org.jboss.dmr.ModelNode.writeString()

                String subsystem = pe.getValue();
                SubsystemInformation info = registry.getSubsystemInfo(subsystem);
                ModelNode desc = readFullModelDescription(PathAddress.pathAddress(pe), registration);
                String name = subsystem + "-" + info.getManagementInterfaceMajorVersion() + "." + info.getManagementInterfaceMinorVersion() + ".dmr";
                PrintWriter pw = new PrintWriter(new File(path, name));
                desc.writeString(pw, false);
                pw.close();
            }
        } catch (IOException e) {
            throw new OperationFailedException("could not save,", e);
        }
View Full Code Here

Examples of org.jboss.jms.message.JBossStreamMessage.writeString()

      m.writeDouble(randDouble().doubleValue());
      m.writeFloat(randFloat().floatValue());
      m.writeInt(randInt().intValue());
      m.writeLong(randLong().longValue());
      m.writeShort(randShort().shortValue());
      m.writeString(randString(1000));
      return m;     
   }
  
}
View Full Code Here

Examples of org.jboss.test.messaging.jms.message.SimpleJMSStreamMessage.writeString()

        m.writeFloat(2.0F);
        m.writeInt(3);
        m.writeLong(4L);
        m.writeObject("object");
        m.writeShort((short)5);
        m.writeString("stringvalue");

        return m;
    }
   
    protected void assertEquivalent(Message m, int mode) throws JMSException
View Full Code Here

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

                    transfer.writeInt(SessionRemote.COMMAND_EXECUTE_BATCH_UPDATE_STATEMENT);
                    int size = batchCommands.size();
                    result = new int[size];
                    transfer.writeInt(size);
                    for (int j = 0; j < size; j++)
                        transfer.writeString(batchCommands.get(j));
                    session.done(transfer);

                    for (int j = 0; j < size; j++)
                        result[j] = transfer.readInt();
                } else {
View Full Code Here

Examples of org.msgpack.packer.BufferPacker.writeString()

    @Override
    public void testString(String v) throws Exception {
  MessagePack msgpack = new JSON();
  BufferPacker packer = msgpack.createBufferPacker();
  packer.writeString(v);
  byte[] bytes = packer.toByteArray();
        Unpacker unpacker = msgpack.createBufferUnpacker(bytes);
  String ret = unpacker.readString();
  assertEquals(v, ret);
    }
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.