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

Ads