<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>s2sgateway &#187; HTML</title>
	<atom:link href="http://s2sgateway.com/category/html/feed/" rel="self" type="application/rss+xml" />
	<link>http://s2sgateway.com</link>
	<description>Practical Learning of Programming languages such us j2ee,java,jsp</description>
	<lastBuildDate>Sat, 21 Jan 2012 18:55:21 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Reading Html code of all the url using java</title>
		<link>http://s2sgateway.com/java/reading-html-code-of-all-the-url-using-java/</link>
		<comments>http://s2sgateway.com/java/reading-html-code-of-all-the-url-using-java/#comments</comments>
		<pubDate>Tue, 22 Dec 2009 14:01:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[buffered reader in java]]></category>
		<category><![CDATA[ieee project in java]]></category>
		<category><![CDATA[import java.net.* use in java]]></category>
		<category><![CDATA[input stream reader in java]]></category>
		<category><![CDATA[network application in java]]></category>
		<category><![CDATA[read url in java]]></category>
		<category><![CDATA[simple java network program]]></category>
		<category><![CDATA[url reader in java]]></category>

		<guid isPermaLink="false">http://s2sgateway.com/?p=365</guid>
		<description><![CDATA[A simple tricky program that can read all the html codes of given url using java the following code does that import java.net.*; import java.io.*; public class URLReader { public static void main(String[] args) throws Exception { URL yahoo = new URL("http://www.yahoo.com"); BufferedReader in = new BufferedReader( new InputStreamReader( yahoo.openStream())); String inputLine; while ((inputLine = [...]<p><a href="http://s2sgateway.com/java/reading-html-code-of-all-the-url-using-java/">Reading Html code of all the url using java</a> is a post from: <a href="http://s2sgateway.com">s2sgateway</a></p>
]]></description>
			<content:encoded><![CDATA[<p>A simple tricky program that can read all the html codes of given url using java the following code does that</p>
<pre>
import java.net.*;
import java.io.*;

public class URLReader {
    public static void main(String[] args) throws Exception {
	URL yahoo = new URL("http://www.yahoo.com");
	BufferedReader in = new BufferedReader(
				new InputStreamReader(
				yahoo.openStream()));

	String inputLine;

	while ((inputLine = in.readLine()) != null)
	    System.out.println(inputLine);

	in.close();
    }
}
</pre>
<p>Compile and run this java file give any url you want to read in here URL yahoo = new URL(&#8220;http://www.yahoo.com&#8221;);<br />
Any doubt Ask us Happy coding</p>
<p><a href="http://s2sgateway.com/java/reading-html-code-of-all-the-url-using-java/">Reading Html code of all the url using java</a> is a post from: <a href="http://s2sgateway.com">s2sgateway</a></p>
]]></content:encoded>
			<wfw:commentRss>http://s2sgateway.com/java/reading-html-code-of-all-the-url-using-java/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>


