Package java.io

Examples of java.io.DataInput.readUnsignedShort()


                            break;
                        case UnsignedByte:
                            heightData[index] = di.readUnsignedByte() * 0.5f / Byte.MAX_VALUE;
                            break;
                        case UnsignedShort:
                            heightData[index] = di.readUnsignedShort() * 0.5f / Short.MAX_VALUE;
                            break;
                        case Integer:
                            heightData[index] = di.readInt() * 0.5f / Integer.MAX_VALUE + 0.5f;
                            break;
                        case Float:
View Full Code Here


      // read LUS host
      String host = din.readUTF();

      // read LUS port
      int port = din.readUnsignedShort();

      // read LUS member groups
      String[] groups = new String[din.readInt()];
      for (int i = 0; i < groups.length; i++) {
    groups[i] = din.readUTF();
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.