FileDocCategorySizeDatePackage
Stock.javaAPI DocExample852Sat Jan 05 11:47:02 GMT 2002None

Stock

public class Stock extends Object

Fields Summary
private static String
name
private static String
time
private static String
price
Constructors Summary
Methods Summary
public static java.lang.StringgetName(java.lang.String record)

      parse(record);
      return(name);
   
public static java.lang.StringgetPrice(java.lang.String record)

      parse(record);
      return(price);
   
public static voidparse(java.lang.String data)

      int index = data.indexOf('""); 
      name = data.substring(++index,(index = data.indexOf('"", index)));
      index +=3;
      time = data.substring(index, (index = data.indexOf('-", index))-1);
      index +=5;
      price = data.substring(index, (index = data.indexOf('<", index)));