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









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
Creating MS Word document in java - Struts
how to send the content of jtextarea from netbeans IDE to webpage's textarea in java
java code7 of 1
export to word document - Java Beginners
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
JTextArea to 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?
POI Word document (Letter Template)
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......
word document reading - Development process
APACHE.POI -- Create word Document - Development process
convert word document to pdf
Can I become a coder at 40?
Write String in Word document
store form data into word document
Using poi hwpf,how to create table in word document. - Java Beginners
I would like to hire a Coder for iPhone application development
display resume content in webpage - JSP-Servlet
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
Open Text or Word Document on JButton Click in Java - Java Beginners
Parent child windows relationships when webpage is accesssed through a hyperlink.
ModuleNotFoundError: No module named 'codel'
create , edit MS WORD like document file using Java Swing - Swing AWT
Page is not getting loaded when I refresh the webpage???
ModuleNotFoundError: No module named 'codep'
ModuleNotFoundError: No module named 'codep'
ModuleNotFoundError: No module named 'codep'
ModuleNotFoundError: No module named 'codev'
create MS Word in Java - Java Beginners
ModuleNotFoundError: No module named 'codex'
ModuleNotFoundError: No module named 'codex'
How to hide text in Word Document using Apache POI library
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 codes
Java code to convert pdf file to word file
java codes
Maven dependency for com.intersult - coder version 1.5 is released. Learn to use coder version 1.5 in Maven based Java projects
java sorting codes - Java Beginners
upload and retrieve a word document - JSP-Servlet
ModuleNotFoundError: No module named 'codeq-nlp-api'

Ads