Examples of writeChar()


Examples of net.minecraft.util.io.netty.buffer.ByteBuf.writeChar()

        bytebuf.writeShort(achar.length);
        char[] achar1 = achar;
        int i = achar.length;

        for (int j = 0; j < i; ++j) {
            char c0 = achar1[j];

            bytebuf.writeChar(c0);
        }

        return bytebuf;
View Full Code Here

Examples of net.timewalker.ffmq3.common.message.BytesMessageImpl.writeChar()

        BytesMessageImpl msg = new BytesMessageImpl();
        setDummyProperties(msg);
       
        msg.writeBoolean(true);
        msg.writeUTF("foobar");
        msg.writeChar('c');
        msg.writeByte((byte)1);
        msg.writeShort((short)2);
        msg.writeInt(3);
        msg.writeLong(4);
        msg.writeFloat(1.23f);
View Full Code Here

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

        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);
        msg.writeFloat(1.23f);
View Full Code Here

Examples of org.activemq.message.ActiveMQBytesMessage.writeChar()

    }
  }
  public void testReadChar() {
    ActiveMQBytesMessage msg = new ActiveMQBytesMessage();
    try {
      msg.writeChar('a');
      msg.reset();
      assertTrue(msg.readChar() == 'a');
    } catch (JMSException jmsEx) {
      jmsEx.printStackTrace();
      assertTrue(false);
View Full Code Here

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

      msg.reset();
      assertTrue(((Double)msg.readObject()).doubleValue()==testDouble);
      msg.clearBody();
     
      char testChar = 'z';
      msg.writeChar(testChar);
      msg.reset();
      assertTrue(((Character)msg.readObject()).charValue()==testChar);
      msg.clearBody();
     
      byte[] data = new byte[50];
View Full Code Here

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

    }

    public void testReadChar() {
        ActiveMQBytesMessage msg = new ActiveMQBytesMessage();
        try {
            msg.writeChar('a');
            msg.reset();
            assertTrue(msg.readChar() == 'a');
        } catch (JMSException jmsEx) {
            jmsEx.printStackTrace();
            assertTrue(false);
View Full Code Here

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

            message.writeBoolean(true);
            message.writeByte((byte) 1);
            message.writeByte((byte) 1);
            message.writeBytes(new byte[1]);
            message.writeBytes(new byte[3], 0, 2);
            message.writeChar('a');
            message.writeDouble(1.5);
            message.writeFloat((float) 1.5);
            message.writeInt(1);
            message.writeLong(1);
            message.writeObject("stringobj");
View Full Code Here

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

            message.writeBytes(new byte[3], 0, 2);
            fail("Should have thrown exception");
        } catch (MessageNotWriteableException mnwe) {
        }
        try {
            message.writeChar('a');
            fail("Should have thrown exception");
        } catch (MessageNotWriteableException mnwe) {
        }
        try {
            message.writeDouble(1.5);
View Full Code Here

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

            message.writeBoolean(true);
            message.writeByte((byte) 1);
            message.writeByte((byte) 1);
            message.writeBytes(new byte[1]);
            message.writeBytes(new byte[3], 0, 2);
            message.writeChar('a');
            message.writeDouble(1.5);
            message.writeFloat((float) 1.5);
            message.writeInt(1);
            message.writeLong(1);
            message.writeObject("stringobj");
View Full Code Here

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

    public void testReadChar() {
        ActiveMQStreamMessage msg = new ActiveMQStreamMessage();
        try {
            char test = 'z';
            msg.writeChar(test);
            msg.reset();
            assertTrue(msg.readChar() == test);
            msg.reset();
            assertTrue(msg.readString().equals(new Character(test).toString()));
            msg.reset();
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.