Examples of writeChar()


Examples of org.codehaus.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.hornetq.jms.client.HornetQStreamMessage.writeChar()

   public void testReadCharFromChar() throws Exception
   {
      char value = RandomUtil.randomChar();
      HornetQStreamMessage message = new HornetQStreamMessage();

      message.writeChar(value);
      message.reset();

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

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

      log.debug("creating JMS Message type " + m.getClass().getName());

      m.writeBoolean(true);
      m.writeBytes("jboss".getBytes());
      m.writeChar('c');
      m.writeDouble(1.0D);
      m.writeFloat(2.0F);
      m.writeInt(3);
      m.writeLong(4L);
      m.writeObject("object");
View Full Code Here

Examples of org.jboss.jms.message.JBossBytesMessage.writeChar()

      setCorrelationID(m, i);
     
      m.writeBoolean(randBool().booleanValue());
      m.writeByte(randByte().byteValue());
      m.writeBytes(randByteArray(500));
      m.writeChar(randChar().charValue());
      m.writeDouble(randDouble().doubleValue());
      m.writeFloat(randFloat().floatValue());
      m.writeInt(randInt().intValue());
      m.writeLong(randLong().longValue());     
      m.writeShort(randShort().shortValue());
View Full Code Here

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

     
      m.setPayload(new ArrayList());
      m.writeBoolean(randBool().booleanValue());
      m.writeByte(randByte().byteValue());
      m.writeBytes(randByteArray(500));
      m.writeChar(randChar().charValue());
      m.writeDouble(randDouble().doubleValue());
      m.writeFloat(randFloat().floatValue());
      m.writeInt(randInt().intValue());
      m.writeLong(randLong().longValue());
      m.writeShort(randShort().shortValue());
View Full Code Here

Examples of org.jboss.netty.buffer.ChannelBuffer.writeChar()

   */
  @Test
  public void testReadString() {
    ChannelBuffer buffer = ChannelBuffers.buffer(12);
    buffer.writeShort(5);
    buffer.writeChar('h');
    buffer.writeChar('e');
    buffer.writeChar('l');
    buffer.writeChar('l');
    buffer.writeChar('o');

View Full Code Here

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

       
        log.debug("creating JMS Message type " + m.getClass().getName());
       
        m.writeBoolean(true);
        m.writeBytes("jboss".getBytes());
        m.writeChar('c');
        m.writeDouble(1.0D);
        m.writeFloat(2.0F);
        m.writeInt(3);
        m.writeLong(4L);
        m.writeObject("object");
View Full Code Here

Examples of org.jgroups.util.ByteArrayDataOutputStream.writeChar()

    public void testChar() throws IOException {
        ByteArrayDataOutputStream out=new ByteArrayDataOutputStream(1024);
        for(int i=0; i < 500; i++) {
            int ch='a' + i;
            out.writeChar(ch);
        }
        ByteArrayDataInputStream in=new ByteArrayDataInputStream(out.buffer());
        for(int i=0; i < 500; i++) {
            char ch=in.readChar();
            assert ch == 'a' + i;
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.