Examples of writeByte()


Examples of java.io.RandomAccessFile.writeByte()

            fout.writeBoolean(head.endian); // Big Endian - should
            // match head.endian
            fout.writeShort(RpfHeader.HEADER_SECTION_LENGTH);
            fout.writeBytes("       A.TOC"); // has to be padded.
            fout.writeByte(head.neww);

            fout.writeBytes(head.standardNumber);
            if (head.standardNumber.length() < 15) {
                fout.writeBytes(createPadding(15 - head.standardNumber.length(),
                        false));
View Full Code Here

Examples of java.nio.ByteBuffer.writeByte()

                clientCookie = new byte[16];
                random.nextBytes(clientCookie);

                SshPacketBuilder b = new SshPacketBuilder().writeByte(SshUtils.SSH_MSG_KEXINIT);
                for (int i = 0; i < clientCookie.length; i++) {
                  b.writeByte(clientCookie[i]);
                }
                for (String s : clientExchange) {
                  b.writeString(s);
                }
                b.writeByte(0);
View Full Code Here

Examples of javassist.bytecode.CodeIterator.writeByte()

            final int readMethodIndex = constPool.addMethodrefInfo(
                constPool.getThisClassInfo(),
                attributeDescriptor.getReader().getName(),
                attributeDescriptor.getReader().getSignature()
            );
            itr.writeByte( Opcode.INVOKESPECIAL, index );
            itr.write16bit( readMethodIndex, index + 1 );
          }
          else {
            final int writeMethodIndex = constPool.addMethodrefInfo(
                constPool.getThisClassInfo(),
View Full Code Here

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

                    if (pos >= length) {
                        ios.reset();
                        ios.mark();
                        pos = 0;
                    }
                    ios.writeByte(0);
                    pos++;
                } while (--numReps >= 0);
            } catch (IOException e) {
                e.printStackTrace();
            } finally {
View Full Code Here

Examples of javax.jms.BytesMessage.writeByte()

   public void testBytesMessage() throws Exception
   {
      log.info("+++ testBytesMessage");
      BytesMessage sent = session.createBytesMessage();
      sent.writeBoolean(true);
      sent.writeByte((byte) 1);
      byte[] testBytes = "Bytes".getBytes();
      sent.writeBytes(testBytes);
      sent.writeChar('c');
      sent.writeShort((short) 31415);
      sent.writeInt(314159);
View Full Code Here

Examples of javax.jms.StreamMessage.writeByte()

   public void testStreamMessage() throws Exception
   {
      log.info("+++ testStreamMessage");
      StreamMessage sent = session.createStreamMessage();
      sent.writeBoolean(true);
      sent.writeByte((byte) 1);
      byte[] testBytes = "Bytes".getBytes();
      sent.writeBytes(testBytes);
      sent.writeChar('c');
      sent.writeShort((short) 31415);
      sent.writeInt(314159);
View Full Code Here

Examples of net.bnubot.core.BNetOutputStream.writeByte()

    ByteArrayOutputStream baos = new ByteArrayOutputStream();
    BNetOutputStream sckout = new BNetOutputStream(baos);
   
    try {
      sckout.writeWord(data.length + 3);
      sckout.writeByte(packetId);
      sckout.write(data);
    } catch(IOException e) {
      e.printStackTrace();
      System.exit(1);
    }
View Full Code Here

Examples of net.bnubot.util.BNetOutputStream.writeByte()

      Socket s = new Socket(cs.server, cs.port);
      BNetInputStream is = new BNetInputStream(s.getInputStream());
      BNetOutputStream os = new BNetOutputStream(s.getOutputStream());
    ) {
      //FTP
      os.writeByte(0x02);

      //File request
      os.writeWord(32 + fileName.length() + 1);
      os.writeWord(0x100);    // Protocol version
      os.writeDWord(PlatformIDs.PLATFORM_IX86)// Platform ID
View Full Code Here

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

    private void a(ChannelHandlerContext channelhandlercontext, ByteBuf bytebuf) {
        channelhandlercontext.pipeline().firstContext().writeAndFlush(bytebuf).addListener(ChannelFutureListener.CLOSE);
    }

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

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

        bytebuf.writeShort(achar.length);
View Full Code Here

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

    } else {
      pdb.writeShort(0);
    }
    if (to != null) {
      pdb.writeString(to);
      pdb.writeByte(0);
    }
    if (cc != null) {
      pdb.writeString(cc);
      pdb.writeByte(0);
    }
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.