Package java.io

Examples of java.io.DataInputStream.readLong()


                  throw StandardException.newException(
                          SQLState.LOG_INCOMPATIBLE_FORMAT, dataDirectory);
              }
 
        int obsoleteVersion = dais.readInt();
        value = dais.readLong();
 
        if (SanityManager.DEBUG)
        {
          if (SanityManager.DEBUG_ON(LogToFile.DBG_FLAG))
                      SanityManager.DEBUG(LogToFile.DBG_FLAG,
View Full Code Here


      // 0
      for (int i = 0; i < longheapsz; i++) {
        if (swap) {
          this.getLongHeap().heap[i] = swap8(dis, bytebuf);
        } else {
          this.getLongHeap().heap[i] = dis.readLong();
        }
      }
      this.getLongHeap().heapPos = longheapsz;

    } catch (IOException e) {
View Full Code Here

            DataInputStream keyInputStream = null;
            try {
                fin = new FileInputStream(tokenFile);
                keyInputStream = new DataInputStream(fin);
                int newCurrentToken = keyInputStream.readInt();
                long newNextUpdate = keyInputStream.readLong();
                SecretKey[] newKeys = new SecretKey[TOKEN_BUFFER_SIZE];
                for (int i = 0; i < newKeys.length; i++) {
                    int isNull = keyInputStream.readInt();
                    if (isNull == 1) {
                        int l = keyInputStream.readInt();
View Full Code Here

        if (file.exists()) {
            DataInputStream in = new DataInputStream(new FileInputStream(file));

            try {
                minRevision = in.readLong();
                maxRevision = minRevision + file.length() - 8;
            } finally {
                in.close();
            }
        } else {
View Full Code Here

      int operationCode = in.readUnsignedByte();
      super.decodeByte1(in.readUnsignedByte());

      // CAUTION: Signed longs represent unsigned longs
      setLogicalBlockAddress(in.readLong());
      long mss = in.readUnsignedShort();
      long lss = in.readUnsignedShort();
      setTransferLength((mss << 16) | lss);

      setGroupNumber(in.readUnsignedByte() & 0x1F);
View Full Code Here

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

      int operationCode = in.readUnsignedByte();
      int serviceAction = in.readUnsignedByte() & 0x1F;
      this.logicalBlockAddress = in.readLong();
      long mss = in.readUnsignedShort();
      long lss = in.readUnsignedShort();
      setAllocationLength((mss << 16) | lss);
      this.PMI = (in.readByte() & 0x01) == 1;
      super.setControl(in.readUnsignedByte());
View Full Code Here

      int operationCode = in.readUnsignedByte();
      super.decodeByte1(in.readUnsignedByte());

      // CAUTION: Signed longs represent unsigned longs
      setLogicalBlockAddress(in.readLong());
      long mss = in.readUnsignedShort();
      long lss = in.readUnsignedShort();
      setTransferLength((mss << 16) | lss);
      setGroupNumber(in.readUnsignedByte() & 0x1F);
      super.setControl(in.readUnsignedByte());
View Full Code Here

            // be more efficient to store it as such.
            Map<Integer,Double> semantics = new IntegerMap<Double>();

            // read in each time step
            for (int tsIndex = 0; tsIndex < timeSteps; ++tsIndex) {
                long timeStep = dis.readLong();
                updateTimeRange(timeStep);
                // load that time step's vector
                for (int i = 0; i < dimensions; ++i) {
                    int index = dis.readInt();
                    double val = dis.readDouble();
View Full Code Here

            LOGGER.info("loading " + timeSteps +
                " timesteps for word " + word);
           
            // read in each time step
            for (int tsIndex = 0; tsIndex < timeSteps; ++tsIndex) {
                long timeStep = dis.readLong();
                updateTimeRange(timeStep);
                int nonZero = dis.readInt();

                // load that time step's vector
                Map<Integer,Double> semantics = new IntegerMap<Double>();
View Full Code Here

        if (emitProperties) {
            properties.put("file_type", "PNG v. 1.0");
        }

        try {
            long magic = distream.readLong();
            if (magic != 0x89504e470d0a1a0aL) {
                String msg = JaiI18N.getString("PNGImageDecoder0");
                throw new RuntimeException(msg);
            }
        } catch (Exception e) {
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.