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?

Ads
 

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
java code7 of 1
open word document
open word document
open word document
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?
POI Word document (Letter Template)
Scanning a word in a TEXT document......
Scanning a word in a TEXT document......
convert word document to pdf
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
Write String in Word document
store form data into word document
I would like to hire a Coder for iPhone application development
java codes
Parent child windows relationships when webpage is accesssed through a hyperlink.
Java code to convert pdf file to word file
How to hide text in Word Document using Apache POI library
Page is not getting loaded when I refresh the webpage???
java codes
How can i select a particular item in jpopup menu through java programs
ModuleNotFoundError: No module named 'codel'
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.
How I get a variable from java script to use it in the scriptlet of jsp.

Ads