csli.util.file
Class DoubleFileReader

java.lang.Object
  extended by csli.util.file.DoubleFileReader

public class DoubleFileReader
extends Object

Read a file of doubles as if it were an array.


Constructor Summary
DoubleFileReader(String filename, int bufferSize)
          Make a new buffered file array reader for the specified file with the specified buffer size (specified in number of values, not bytes).
 
Method Summary
 double get(int index)
          Get the value at the specified index.
static void main(String[] args)
           
 long size()
          Return the size of the entire file array.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DoubleFileReader

public DoubleFileReader(String filename,
                        int bufferSize)
Make a new buffered file array reader for the specified file with the specified buffer size (specified in number of values, not bytes).

Method Detail

main

public static void main(String[] args)

get

public double get(int index)
Get the value at the specified index.


size

public long size()
Return the size of the entire file array.