public CARTImpl(BufferedReader reader,int nodes) throws IOException {
  this(nodes);
  String line;
  for (int i=0; i < nodes; i++) {
    line=reader.readLine();
    if (!line.startsWith("***")) {
      parseAndAdd(line);
    }
  }
}

public CARTImpl ( BufferedReader reader , int nodes ) throws IOException { this ( nodes ) ; String line ; for ( int i = 0 ; i < nodes ; i ++ ) { line = reader . readLine ( ) ; if ( ! line . startsWith ( "***" ) ) { parseAndAdd ( line ) ; } } }
creates a new cart by reading from the given reader .
