public static Stock QueryOne(String code) {
        URL url;
        InputStream is = null;
        BufferedReader br;
        String line;
        Stock s = null;

        String urlStr = "http://finance.yahoo.com/d/quotes.csv?s=" + code + "&f=nsl1";

        try {
            url = new URL(urlStr);
            is = url.openStream();  // throws an IOException
            br = new BufferedReader(new InputStreamReader(is));

            line = br.readLine();
            s = parseStock(line);

        } catch (Exception ex) {
            ex.printStackTrace();
        } finally {
            try {
                if (is != null) {
                    is.close();
                }
            } catch (IOException ioe) {
            }
        }
        return s;
    }