Package java.io

Examples of java.io.DataOutput.writeShort()


            canon.writeInt(v);
        }
        {
            short v = (short) rnd.nextInt();
            test.writeShort(v);
            canon.writeShort(v);
        }
        {
            byte v = (byte) rnd.nextInt();
            test.write(v);
            canon.write(v);
View Full Code Here


            canon.writeInt(v);
        }
        {
            short v = (short) rnd.nextInt();
            test.writeShort(v);
            canon.writeShort(v);
        }
        {
            byte v = (byte) rnd.nextInt();
            test.write(v);
            canon.write(v);
View Full Code Here

            canon.writeInt(v);
        }
        {
            short v = (short) rnd.nextInt();
            test.writeShort(v);
            canon.writeShort(v);
        }
        {
            byte v = (byte) rnd.nextInt();
            test.write(v);
            canon.write(v);
View Full Code Here

      // write LUS host
      dout.writeUTF(response.getHost());

      // write LUS port
      dout.writeShort(intToUshort(response.getPort()));

      // write LUS member groups
      String[] groups = response.getGroups();
      dout.writeInt(groups.length);
      for (int i = 0; i < groups.length; i++) {
View Full Code Here

    ByteArrayOutputStream byteArrayOutputStream =
      new ByteArrayOutputStream(packedSize);
    DataOutput output = new DataOutputStream(byteArrayOutputStream);

    try {
      output.writeShort(arrays.size());

      for (byte[] array : arrays) {
        output.writeInt(array.length);
      }
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.