public static CART loadBinary(DataInputStream is) throws IOException {
  int numNodes=is.readInt();
  CARTImpl cart=new CARTImpl(numNodes);
  for (int i=0; i < numNodes; i++) {
    String nodeCreationLine=Utilities.getString(is);
    cart.parseAndAdd(nodeCreationLine);
  }
  return cart;
}

public static CART loadBinary ( DataInputStream is ) throws IOException { int numNodes = is . readInt ( ) ; CARTImpl cart = new CARTImpl ( numNodes ) ; for ( int i = 0 ; i < numNodes ; i ++ ) { String nodeCreationLine = Utilities . getString ( is ) ; cart . parseAndAdd ( nodeCreationLine ) ; } return cart ; }
loads a cart from the input stream .
