Package krati.io

Examples of krati.io.DataReader.readLong()


    try {
      r.open();
      r.position(DATA_START_POSITION);
     
      for (int i = 0; i < _arrayLength; i++) {
        longArray.set(i, r.readLong());
      }
     
      _log.info(_file.getName() + " loaded in " + c.getElapsedTime());
    } finally {
      r.close();
View Full Code Here


      r.open();
      r.position(DATA_START_POSITION);
     
      long[] array = new long[_arrayLength];
      for (int i = 0; i < _arrayLength; i++) {
        array[i] = r.readLong();
      }
     
      _log.info(_file.getName() + " loaded in " + c.getElapsedTime());
      return array;
    } finally {
View Full Code Here

       
        intValue = reader.readInt();
        assertEquals(Integer.MAX_VALUE, intValue);
       
        long longValue;
        longValue = reader.readLong();
        assertEquals(0L, longValue);
       
        longValue = reader.readLong();
        assertEquals(-123L, longValue);
       
View Full Code Here

       
        long longValue;
        longValue = reader.readLong();
        assertEquals(0L, longValue);
       
        longValue = reader.readLong();
        assertEquals(-123L, longValue);
       
        longValue = reader.readLong();
        assertEquals(Long.MAX_VALUE, longValue);
       
View Full Code Here

        assertEquals(0L, longValue);
       
        longValue = reader.readLong();
        assertEquals(-123L, longValue);
       
        longValue = reader.readLong();
        assertEquals(Long.MAX_VALUE, longValue);
       
        short shortValue;
        shortValue = reader.readShort();
        assertEquals((short)871, shortValue);
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.