public CARTImpl(URL url) throws IOException {
  BufferedReader reader;
  String line;
  Log.d(Mary.LOG,"dddd 1:" + url);
  reader=new BufferedReader(new InputStreamReader(Utilities.getInputStream(url)));
  line=reader.readLine();
  Log.d(Mary.LOG,"dddd rs:" + line.length());
  while (line != null) {
    if (!line.startsWith("***")) {
      parseAndAdd(line);
    }
    line=reader.readLine();
  }
  reader.close();
}

public CARTImpl ( URL url ) throws IOException { BufferedReader reader ; String line ; Log . d ( Mary . LOG , "dddd 1:" + url ) ; reader = new BufferedReader ( new InputStreamReader ( Utilities . getInputStream ( url ) ) ) ; line = reader . readLine ( ) ; Log . d ( Mary . LOG , "dddd rs:" + line . length ( ) ) ; while ( line != null ) { if ( ! line . startsWith ( "***" ) ) { parseAndAdd ( line ) ; } line = reader . readLine ( ) ; } reader . close ( ) ; }
creates a new cart by reading from the given url .
