cdm/src/main/java/ucar/nc2/util/TableParser.java
static public List<Record> readTable(InputStream ios, String format, int maxLines) throws IOException, NumberFormatException {
    List<Record> result;
    try {
      TableParser parser = new TableParser(format);
      result = parser.readAllRecords(ios, maxLines);
    } finally {
      ios.close();
    }
    return result;
  }
static public List<Record> readTable(InputStream ios, String format, int maxLines) throws IOException, NumberFormatException {
    List<Record> result;
    try {
      TableParser parser = new TableParser(format);
      result = parser.readAllRecords(ios, maxLines);
    } finally {
      ios.close();
    }
    return result;
  }
static public List < Record > readTable ( InputStream ios , String format , int maxLines ) throws IOException , NumberFormatException { List < Record > result ; try { TableParser parser = new TableParser ( format ) ; result = parser . readAllRecords ( ios , maxLines ) ; } finally { ios . close ( ) ; } return result ; }
Reads an input stream, containing lines of ascii in fixed width format.
Breaks each line into a set of Fields (space or comma delimited) which may be String, integer or double.

@param ios      the input stream, will be closed
@param format   describe format of each line.
@param maxLines maximum number of lines to parse, set to < 0 to read all
@return List of TableParser.Record
@throws IOException           on read error
@throws NumberFormatException on parse number error
Reads an input stream containing lines of ascii in fixed width format . Breaks each line into a set of Fields ( space or comma delimited ) which may be String integer or double .