Package java.io

Examples of java.io.DataInputStream.readShort()


                    println(" objectId:" + dataIn.readInt());
                    int columns = dataIn.readShort();
                    for (int i = 0; i < columns; i++) {
                        println(" formatCode[" + i + "]: " + dataIn.readShort());
                    }
                    int count = dataIn.readShort();
                    for (int i = 0; i < count; i++) {
                        int l = dataIn.readInt();
                        println(" len[" + i + "]: " + l);
                        if (l >= 0) {
                            for (int j = 0; j < l; j++) {
View Full Code Here


                            for (int j = 0; j < l; j++) {
                                dataIn.readByte();
                            }
                        }
                    }
                    println(" resultFormat: " + dataIn.readShort());
                    break;
                }
                case 'P': {
                    println("Parse");
                    println(" name:" + readStringNull(dataIn));
View Full Code Here

                }
                case 'P': {
                    println("Parse");
                    println(" name:" + readStringNull(dataIn));
                    println(" query:" + readStringNull(dataIn));
                    int count = dataIn.readShort();
                    for (int i = 0; i < count; i++) {
                        println(" [" + i + "]: " + dataIn.readInt());
                    }
                    break;
                }
View Full Code Here

                break;
            }
            case 'G': {
                println("CopyInResponse");
                println(" format: " + dataIn.readByte());
                int columns = dataIn.readShort();
                for (int i = 0; i < columns; i++) {
                    println(" formatCode[" + i + "]: " + dataIn.readShort());
                }
                break;
            }
View Full Code Here

            case 'G': {
                println("CopyInResponse");
                println(" format: " + dataIn.readByte());
                int columns = dataIn.readShort();
                for (int i = 0; i < columns; i++) {
                    println(" formatCode[" + i + "]: " + dataIn.readShort());
                }
                break;
            }
            case 'H': {
                println("CopyOutResponse");
View Full Code Here

      // 0
      for (int i = 0; i < shortheapsz; i++) {
        if (swap) {
          this.getShortHeap().heap[i] = (short) swap2(dis, bytebuf);
        } else {
          this.getShortHeap().heap[i] = dis.readShort();
        }
      }
      this.getShortHeap().heapPos = shortheapsz;

      // word alignment
View Full Code Here

      }
      this.getShortHeap().heapPos = shortheapsz;

      // word alignment
      if (shortheapsz % 2 != 0) {
        dis.readShort();
      }

      // long heap
      int longheapsz = 0;
      if (swap) {
View Full Code Here

      int operationCode = in.readUnsignedByte();
      tmp = in.readUnsignedByte();
      this.SP = (tmp & 0x01) != 0;
      this.PF = (tmp >>> 4) != 0;
      tmp = in.readShort();
      this.setParameterLength(in.readUnsignedByte());
      super.setControl(in.readUnsignedByte());

      if (operationCode != OPERATION_CODE)
      {
View Full Code Here

        System.out
            .println("TGATextureLoader: File is not 24bit RGB Data !");
        error = true;
        return false;
      }
      reader.readShort(); // color map origin, ignore because no color map
      reader.readShort(); // color map length, ignore because no color map
      reader.readByte(); // color map entry size, ignore because no color
                // map
      reader.readShort(); // x origin
      reader.readShort(); // y origin
View Full Code Here

            .println("TGATextureLoader: File is not 24bit RGB Data !");
        error = true;
        return false;
      }
      reader.readShort(); // color map origin, ignore because no color map
      reader.readShort(); // color map length, ignore because no color map
      reader.readByte(); // color map entry size, ignore because no color
                // map
      reader.readShort(); // x origin
      reader.readShort(); // y origin
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.