Examples of writeShort()


Examples of javax.jms.StreamMessage.writeShort()

      sent.writeBoolean(true);
      sent.writeByte((byte) 1);
      byte[] testBytes = "Bytes".getBytes();
      sent.writeBytes(testBytes);
      sent.writeChar('c');
      sent.writeShort((short) 31415);
      sent.writeInt(314159);
      sent.writeLong(3141592653589793238L);
      sent.writeDouble(3.1415926535897932384626433832795);
      sent.writeFloat(3.141f);
      sent.writeObject("31415926535897932384626433832795");
View Full Code Here

Examples of krati.io.DataWriter.writeShort()

       
        writer.writeLong(0L);
        writer.writeLong(-123L);
        writer.writeLong(Long.MAX_VALUE);
       
        writer.writeShort((short)871);
        writer.writeShort((short)-23);
        writer.writeShort(Short.MAX_VALUE);
       
        DataReader reader = createDataReader(file);
        reader.open();
View Full Code Here

Examples of logisticspipes.network.LPDataOutputStream.writeShort()

              data.write(clientBuffer);
              LinkedList<ModernPacket> packets = clientList;
              clearLock.lock();
              for(ModernPacket packet:packets) {
                LPDataOutputStream t = new LPDataOutputStream();
                t.writeShort(packet.getId());
                t.writeInt(packet.getDebugId());
                packet.writeData(t);
                data.writeInt(t.size());
                data.write(t.toByteArray());
              }
View Full Code Here

Examples of me.prettyprint.cassandra.utils.ByteBufferOutputStream.writeShort()

        if (aliasToComparatorMapping.inverse().containsKey(comparator)) {
          byte a = aliasToComparatorMapping.inverse().get(comparator);
          if (desc) {
            a = (byte) Character.toUpperCase((char) a);
          }
          out.writeShort((short) (0x8000 | a));
        } else {
          out.writeShort((short) comparator.length());
          out.write(comparator.getBytes(Charsets.UTF_8));
        }
        // if (comparator.equals(BYTESTYPE.getTypeName()) && (cb.remaining() ==
View Full Code Here

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

    private ByteBuf a(String s) {
        ByteBuf bytebuf = Unpooled.buffer();

        bytebuf.writeByte(255);
        char[] achar = s.toCharArray();

        bytebuf.writeShort(achar.length);
        char[] achar1 = achar;
        int i = achar.length;
View Full Code Here

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

  public Paragraph[] writeData(PdbOutputStream out) throws IOException {
    ByteArrayOutputStream baos = new ByteArrayOutputStream();
    PdbOutputStream pdb = new PdbOutputStream(baos);
    int offset = 8;
    if (to != null) {
      pdb.writeShort(offset);
      offset += to.length() + 1;
    } else {
      pdb.writeShort(0);
    }
    if (cc != null) {
View Full Code Here

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

       
        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);
        msg.writeDouble(4.56);
        msg.writeBytes(createDummyByteArray(size));
View Full Code Here

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

       
        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);
        msg.writeDouble(4.56);
        msg.writeBytes(createDummyByteArray(size));
View Full Code Here

Examples of org.activeio.PacketData.writeShort()

    private Packet createHeaderPacket(byte type, short requestId) throws IOException {
        ByteArrayPacket header = new ByteArrayPacket(new byte[]{3});
        PacketData data = new PacketData(header);
        data.writeByte(type);
        data.writeShort(requestId);
        header.flip();
        return header;
    }

    public void setRequestListener(RequestListener requestListener) throws IOException {
View Full Code Here

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

    }
  }
  public void testReadShort() {
    ActiveMQBytesMessage msg = new ActiveMQBytesMessage();
    try {
      msg.writeShort((short) 3000);
      msg.reset();
      assertTrue(msg.readShort() == 3000);
    } catch (JMSException jmsEx) {
      jmsEx.printStackTrace();
      assertTrue(false);
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.