Share on Google+Share on Google+

Priya
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?
0 Answer(s)      4 years and 9 months ago
Posted in : Security
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)

Ads

View Answers









Related Tutorials/Questions & Answers:
Advertisements
Tutorials   
Java Spring Hibernate Struts Training encrypting clear text password in jboss 5.1 and higher version application over https Call Https Url esign filter for wifi router Hash-function: "weakly collision-free" and "strongly collision-free" How to Unlock Excel Password How To Unblock IP address from command line in CSF Firewall ΓΆβ?¬β?? Linux Server? BCMWLTRY.EXE error SSL for login page project 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? Direct Access of PDF Delete Account What is JSS in Java? SQL Releted Quastion any body have any solutions? How to disable cut, copy, paste, rename, etc from the Windows Registry ? Security Fillters security filter development environment photo album Sample code for An ASCII Encryption and Decryption code in C-language only. how to turn off bluetooth on mac how to turn off bluetooth on mac Spring alternative to Form Based Login security jpcap_api Filters email archiving Windows File Protection network security analyzer SSL HttpsUrlConnection stegnography code Webapplication Security - Security Spring Struts2 Acegi - Security General - Security How to send request to the visa/master card to get verifed the credit card - Security applet security error - Security pls answer - Security session timeout - Security how to control program/thread 's access authority - Security josso - Security HACKING php session - Security password - Security coding problem using vb and access - Security cryptography - Security How to send request to the visa/master card to get verifed the credit card - Security Java - Security https popup msgs - Security

Ads

 
Advertisement null

Ads