Will i be able to get the content of a webpage in a word document (Note:i don t have access to the source code)through java code?

Will i be able to get the content of a webpage in a word document (Note:i don t have access to the source code)through java code?

public class WebpageReader {
    public static void main(String[] args) throws IOException {
        String line = null, response;
        URL url = new URL("http://www.google.co.in/");
        HttpURLConnection conn = (HttpURLConnection) url.openConnection();
        BufferedReader rd = new BufferedReader(new InputStreamReader(conn.getInputStream()));
        while (rd.readLine() != null) {
            line += rd.readLine();
        }
        System.out.println(line);

}

} I am getting output to this code as html tags....

But what i want is in a word document to the webpage(for which i don t have access to source code)

View Answers

Ads









Related Tutorials/Questions & Answers:
Will i be able to get the content of a webpage in a word document (Note:i don t have access to the source code)through java code?
java code to open and display MS-word document
Advertisements
how to send the content of jtextarea from netbeans IDE to webpage's textarea in java
How to merge two word document using java
How to merge two word document using java
open word document
open word document
open word document
java code7 of 1
POI Word document (Letter Template)
How to export the table content from an webpage to excel using java?
How to export the table content from an webpage to excel using java?
Edit word document Headers and Footers using POI Library in java?
Scanning a word in a TEXT document......
Scanning a word in a TEXT document......
convert word document to pdf
Write String in Word document
store form data into word document
Can I become a coder at 40?
this is my code but i cant able to run it wt is the problem
this is my code but i cant able to run it wt is the problem
Parent child windows relationships when webpage is accesssed through a hyperlink.
I would like to hire a Coder for iPhone application development
Page is not getting loaded when I refresh the webpage???
ModuleNotFoundError: No module named 'codel'
How to hide text in Word Document using Apache POI library
java codes
How can I access databse through JSP. I am using postgresql-8.4.4-1-windows as database and jboss-4.0.5.GA as server.
Java code to convert pdf file to word file
How can i select a particular item in jpopup menu through java programs
java codes

Ads