Help in java project

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Meiaad
    New Member
    • May 2007
    • 1

    #1

    Help in java project

    I have a java project. this project is stock market monitoring system. our jop is to download the source of the html page using eclips. and i success to do that but the problem is how can i search from this source using java. and print the result of the search for the user.
    please help me as soon as possible
    thank you
    this is my code


    public class URLConnectionRe ader {
    public static void main(String[] args) throws Exception {
    URL DFM = new URL("http://www.dfm.ae/marketwatch/default.aspx");
    URLConnection yc = DFM.openConnect ion();
    BufferedReader in = new BufferedReader(
    new InputStreamRead er(
    yc.getInputStre am()));
    String inputLine;

    while ((inputLine = in.readLine()) != null)
    System.out.prin tln(inputLine);
    }}
  • r035198x
    MVP
    • Sep 2006
    • 13225

    #2
    Originally posted by Meiaad
    I have a java project. this project is stock market monitoring system. our jop is to download the source of the html page using eclips. and i success to do that but the problem is how can i search from this source using java. and print the result of the search for the user.
    please help me as soon as possible
    thank you
    this is my code


    public class URLConnectionRe ader {
    public static void main(String[] args) throws Exception {
    URL DFM = new URL("http://www.dfm.ae/marketwatch/default.aspx");
    URLConnection yc = DFM.openConnect ion();
    BufferedReader in = new BufferedReader(
    new InputStreamRead er(
    yc.getInputStre am()));
    String inputLine;

    while ((inputLine = in.readLine()) != null)
    System.out.prin tln(inputLine);
    }}
    You can use regular expressions for the search (deepending on what you will be searching for ...)

    Comment

    Working...