public UnivalArray(RRDFile file,int size) throws IOException {
  sizeoflong=file.getBits();
  buffer=ByteBuffer.allocate(size * 8);
  if (file.isBigEndian())   buffer.order(ByteOrder.BIG_ENDIAN);
 else   buffer.order(ByteOrder.LITTLE_ENDIAN);
  file.align();
  file.read(buffer);
}

public UnivalArray ( RRDFile file , int size ) throws IOException { sizeoflong = file . getBits ( ) ; buffer = ByteBuffer . allocate ( size * 8 ) ; if ( file . isBigEndian ( ) ) buffer . order ( ByteOrder . BIG_ENDIAN ) ; else buffer . order ( ByteOrder . LITTLE_ENDIAN ) ; file . align ( ) ; file . read ( buffer ) ; }
read an univalarray from a rrd native file at the current position
