Examples of writeShort()


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

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

      return m;
   }
View Full Code Here

Examples of org.jboss.invocation.MarshalledValueOutputStream.writeShort()

      // Package everything into one byte[]
      try {
         ByteArrayOutputStream baos = new ByteArrayOutputStream(1024);
         MarshalledValueOutputStream out = new MarshalledValueOutputStream(baos);
         // Write out the version for reader can know how to integrate
         out.writeShort(STATE_TRANSFER_VERSION);
         out.writeObject(states);           
         out.close();
         retval = baos.toByteArray();
        
         log.info("returning the state for tree rooted in " + fqn.toString() +
View Full Code Here

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

      m.writeChar(randChar().charValue());
      m.writeDouble(randDouble().doubleValue());
      m.writeFloat(randFloat().floatValue());
      m.writeInt(randInt().intValue());
      m.writeLong(randLong().longValue());     
      m.writeShort(randShort().shortValue());
      m.writeUTF(randString(1000));

      return m;     
   }
  
View Full Code Here

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

      m.writeChar(randChar().charValue());
      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.netty.buffer.ChannelBuffer.writeShort()

            int length = data.readableBytes();
            if (length < 126) {
                encoded.writeByte(length);
            } else if (length < 65535) {
                encoded.writeByte(126);
                encoded.writeShort(length);
            } else {
                encoded.writeByte(127);
                encoded.writeInt(length);
            }
View Full Code Here

Examples of org.jboss.soa.esb.message.body.content.BytesBody.writeShort()

    mapMessage.writeMode();

    mapMessage.writeInt(12345);
    mapMessage.writeUTFString("hello world");
    mapMessage.writeShort((short) 10);
    mapMessage.writeBoolean(true);

    mapMessage.flush();
   
    mapMessage.readMode();
View Full Code Here

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

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

        return m;
    }
   
View Full Code Here

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

        out=new ByteArrayDataOutputStream(1);
        out.writeBoolean(true);
        out.writeBoolean(false);

        out=new ByteArrayDataOutputStream(1);
        out.writeShort(22);
        out.writeShort(23);

        out=new ByteArrayDataOutputStream(1);
        out.writeInt(23);
        out.writeInt(24);
View Full Code Here

Examples of org.lilyproject.bytes.api.DataOutput.writeShort()

        int i = random.nextInt();
        dataOutput.writeInt(i);
        long l = random.nextLong();
        dataOutput.writeLong(l);
        short s = (short) 4;
        dataOutput.writeShort(s);
        String string = randomUnicodeString();
        dataOutput.writeUTF(string);
        dataOutput.writeVInt(Math.abs(i));
        dataOutput.writeVLong(Math.abs(l));
View Full Code Here

Examples of org.lilyproject.bytes.impl.DataOutputImpl.writeShort()

        int i = random.nextInt();
        dataOutput.writeInt(i);
        long l = random.nextLong();
        dataOutput.writeLong(l);
        short s = (short) 4;
        dataOutput.writeShort(s);
        String string = randomUnicodeString();
        dataOutput.writeUTF(string);
        dataOutput.writeVInt(Math.abs(i));
        dataOutput.writeVLong(Math.abs(l));
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.