Package java.io

Examples of java.io.DataInputStream.readByte()


        // version and an int for storing checkpoint interval
        // and log switch interval
        onDiskMajorVersion = dais.readInt();
        onDiskMinorVersion = dais.readInt();
        int dbBuildNumber = dais.readInt();
        int flags = dais.readByte();
       
        // check if the database was booted previously at any time with
                // derby.system.durability=test mode
                // If yes, then on a boot error we report that this setting is
                // probably the cause for the error and also log a warning
View Full Code Here


    try {
      // key
      // deteremine if byte swap if needed based on key
      byte[] bytebuf = new byte[4];
      bytebuf[0] = dis.readByte()// U
      bytebuf[1] = dis.readByte()// I
      bytebuf[2] = dis.readByte()// M
      bytebuf[3] = dis.readByte()// A

      boolean swap = false;
View Full Code Here

    try {
      // key
      // deteremine if byte swap if needed based on key
      byte[] bytebuf = new byte[4];
      bytebuf[0] = dis.readByte()// U
      bytebuf[1] = dis.readByte()// I
      bytebuf[2] = dis.readByte()// M
      bytebuf[3] = dis.readByte()// A

      boolean swap = false;
      // check if first byte is ascii char U
View Full Code Here

      // key
      // deteremine if byte swap if needed based on key
      byte[] bytebuf = new byte[4];
      bytebuf[0] = dis.readByte()// U
      bytebuf[1] = dis.readByte()// I
      bytebuf[2] = dis.readByte()// M
      bytebuf[3] = dis.readByte()// A

      boolean swap = false;
      // check if first byte is ascii char U
      if (bytebuf[0] != 85) {
View Full Code Here

      // deteremine if byte swap if needed based on key
      byte[] bytebuf = new byte[4];
      bytebuf[0] = dis.readByte()// U
      bytebuf[1] = dis.readByte()// I
      bytebuf[2] = dis.readByte()// M
      bytebuf[3] = dis.readByte()// A

      boolean swap = false;
      // check if first byte is ascii char U
      if (bytebuf[0] != 85) {
        swap = true;
View Full Code Here

      this.getByteHeap().heap = new byte[Math.max(16, byteheapsz)]; // must
      // be >
      // 0
      for (int i = 0; i < byteheapsz; i++) {
        this.getByteHeap().heap[i] = dis.readByte();
      }
      this.getByteHeap().heapPos = byteheapsz;

      // word alignment
      int align = (4 - (byteheapsz % 4)) % 4;
View Full Code Here

      this.getByteHeap().heapPos = byteheapsz;

      // word alignment
      int align = (4 - (byteheapsz % 4)) % 4;
      for (int i = 0; i < align; i++) {
        dis.readByte();
      }

      // short heap
      int shortheapsz = 0;
      if (swap) {
View Full Code Here

      this.setResponseCode(ResponseCode.valueOf((byte) (header[0] & 0x7F)));

      DataInputStream in = new DataInputStream(new ByteBufferInputStream(input));

      // read in first segment of fixed format sense data
      in.readByte();
      int key = in.readUnsignedByte() & 0x0F; // TODO: FILEMARK, EOM, and ILI are unsupported
      byte[] info = new byte[4];
      in.read(info);
      int length = in.readUnsignedByte() - 10; // length of next segment, minus required read-in
      length = length < 0 ? 0 : length;
View Full Code Here

      // read in the next segment of the fixed format sense data
      byte[] cmdi = new byte[4];
      in.read(cmdi);
      int code = in.readUnsignedByte();
      int qualifier = in.readUnsignedByte();
      in.readByte();
      this.senseKeySpecificBuffer = new byte[3];
      in.read(this.senseKeySpecificBuffer);
      // the rest of the additional sense bytes are ignored
      // (vendor specific bytes not supported)
      in.skip(length);
View Full Code Here

      int serviceAction = in.readUnsignedByte() & 0x1F;
      in.readInt();
      long mss = in.readUnsignedShort();
      long lss = in.readUnsignedShort();
      setAllocationLength((mss << 16) | lss);
      in.readByte();
      super.setControl(in.readUnsignedByte());

      if (operationCode != OPERATION_CODE)
      {
         throw new IllegalArgumentException("Invalid operation code: "
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.