Package krati.io

Examples of krati.io.DataReader.readShort()


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


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

       
        longValue = reader.readLong();
        assertEquals(Long.MAX_VALUE, longValue);
       
        short shortValue;
        shortValue = reader.readShort();
        assertEquals((short)871, shortValue);
       
        shortValue = reader.readShort();
        assertEquals((short)-23, shortValue);
       
View Full Code Here

       
        short shortValue;
        shortValue = reader.readShort();
        assertEquals((short)871, shortValue);
       
        shortValue = reader.readShort();
        assertEquals((short)-23, shortValue);
       
        shortValue = reader.readShort();
        assertEquals(Short.MAX_VALUE, shortValue);
       
View Full Code Here

        assertEquals((short)871, shortValue);
       
        shortValue = reader.readShort();
        assertEquals((short)-23, shortValue);
       
        shortValue = reader.readShort();
        assertEquals(Short.MAX_VALUE, shortValue);
       
        writer.close();
        reader.close();
    }
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.