Examples of writeInt()


Examples of java.nio.ByteBuffer.writeInt()

                }
                for (String s : clientExchange) {
                  b.writeString(s);
                }
                b.writeByte(0);
                b.writeInt(0);
                write.handle(null, b.finish());
              }
            }, handler);

            hw.handle(null, ByteBuffer.wrap((CLIENT_HEADER + EOL).getBytes(Charsets.UTF_8)));
View Full Code Here

Examples of javax.imageio.stream.ImageOutputStream.writeInt()

    ImageOutputStream out=(ImageOutputStream)getOutput();
    out.setByteOrder(ByteOrder.LITTLE_ENDIAN);
    out.writeShort(0x00004949);               // 0: II = intel = little endian
    out.writeShort(42);                       // 2: version, magic value
    ifdptr=out.getStreamPosition();           // save position (4): write here later the offset to first ifd (ifd linked list)
    out.writeInt(0);                          // 4: offset first Image File Directory
                                              // 8: header size
  }

  public void writeToSequence(IIOImage img,ImageWriteParam param)throws IOException{
    if(!(img.getRenderedImage() instanceof BufferedImage)){
View Full Code Here

Examples of javax.jms.BytesMessage.writeInt()

      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");
      sent.writeUTF("31415926535897932384626433832795");
View Full Code Here

Examples of javax.jms.StreamMessage.writeInt()

      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");
      sent.writeString("31415926535897932384626433832795");
View Full Code Here

Examples of krati.io.DataWriter.writeInt()

            // Save entry head
            out.writeLong(STORAGE_VERSION); // write the entry file version
            out.writeLong(_minScn);
            out.writeLong(_maxScn);
            out.writeInt(size());

            // Save entry body
            saveDataSection(out);

            // Save entry tail.
View Full Code Here

Examples of krati.io.FastDataWriter.writeInt()

            // Save entry head
            out.writeLong(STORAGE_VERSION); // write the entry file version
            out.writeLong(_minScn);
            out.writeLong(_maxScn);
            out.writeInt(size());

            // Save entry body
            saveDataSection(out);

            // Save entry tail.
View Full Code Here

Examples of logisticspipes.network.LPDataOutputStream.writeInt()

              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());
              }
              packets.clear();
View Full Code Here

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

        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.writeInt()

        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 net.tomp2p.storage.AlternativeCompositeByteBuf.writeInt()

    private static final DSASignatureFactory factory = new DSASignatureFactory();

  @Test
  public void compositeBufferTest1() {
    AlternativeCompositeByteBuf cbuf = AlternativeCompositeByteBuf.compBuffer();
    cbuf.writeInt(1);
    ByteBuf buf = Unpooled.buffer();
    buf.writeInt(2);
    cbuf.capacity(4);
    cbuf.addComponent(buf);
    cbuf.writerIndex(8);
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.