public static double[] readFileColumn(String filename,int columnIdx,int sizeLimit) throws IOException, SAXException {
  Path path=Paths.get(filename);
  if (!(Files.exists(path))) {
    throw new SAXException("unable to load data - data source not found.");
  }
  BufferedReader br=new BufferedReader(new InputStreamReader(new FileInputStream(filename),"UTF-8"));
  return readTS(br,columnIdx,sizeLimit);
}

public static double [ ] readFileColumn ( String filename , int columnIdx , int sizeLimit ) throws IOException , SAXException { Path path = Paths . get ( filename ) ; if ( ! ( Files . exists ( path ) ) ) { throw new SAXException ( "unable to load data - data source not found." ) ; } BufferedReader br = new BufferedReader ( new InputStreamReader ( new FileInputStream ( filename ) , "UTF-8" ) ) ; return readTS ( br , columnIdx , sizeLimit ) ; }
reads timeseries from a file . assumes that file has a single double value on every line . assigned timestamps are the line numbers .
