chandrasekhar
provide source
1 Answer(s)      4 years and 5 months ago
Posted in : Java Beginners

View Answers

January 30, 2009 at 7:10 AM


Hi

This is the source code of how to download the url:


import java.io.*;
import java.net.*;

public class DnldURL {
public static void main (String[] args) {
URL u;
InputStream is = null;
DataInputStream dis;
String s;

try {
u = new URL("http://roseindia.net/index.shtml";);
is = u.openStream();
dis = new DataInputStream(new BufferedInputStream(is));

while ((s = dis.readLine()) != null) {
System.out.println(s);
}
} catch (MalformedURLException mue) {
System.out.println("Ouch - a MalformedURLException happened.");
mue.printStackTrace();
System.exit(1);
} catch (IOException ioe) {
System.out.println("Oops- an IOException happened.");
ioe.printStackTrace();
System.exit(1);
} finally {
try {
is.close();
} catch (IOException ioe) {}
}
}
}


Thanks...









Related Pages:
provide source - Java Beginners
provide source  please provide code for this program Write a program to download a website from a given URL. It must download all the pages from... the files/pages must be stored in a folder.  Hi This is the source code
Please Provide the direct Downloadable source code for better understanding
Please Provide the direct Downloadable source code for better understanding  Hello Roseindia Team, This is Mohammed Vaseem. Am very much impressed.... I kindly request you to please provide the direct downloadable source code so
MIT Open Source
MIT Open Source Open Source at MIT The goal of this project is to provide a central location for storing, maintaining and tracking Open Source software that is developed within the MIT community. This Source Forge project
source code - JSP-Servlet
source code  I want source code for Online shopping Cart. Application Overview The objective of the Shopping Cart is to provide an abstract view... Rakesh, I am sending a link where u will found complete source code
open source help desk
Open Source Help Desk Open Source Help Desk Software As my help desk... of the major open source help desk software offerings. I?m not doing... source help desk applications out there. Not the ones where the site hasn?t been
Open Source Software
Open Source Software Open Source Software Open source doesn't just mean access to the source code. The program must include source code, and must allow distribution in source code
source
source  how to pass the morethan one fields from one page to another page in struts1.2? i am using tchnologies are struts1.2 oracle 10g myecllipse 8.6 so please post the exact source code to support the above technologies
Open Source Accounting
the business and provide up-to-date information. Open Source Software gives new...Open Source Accounting Turbocase open source Accounting software TurboCASH .7 is an open source accounting package that is free for everyone
Open Source HTML
Open Source HTML HTML Tidy Library Project A quorum of developers have pitched in on a Source Forge project to maintain and further..., to provide a home where all the patches and fixes that folks contribute can
Open Source DRM
on open standards. The goal of the Open Source project is to provide...Open Source DRM SideSpace releases open source DRM solution SideSpace Solutions released Media-S, an open-source DRM solution. Media-S is format
Open Source Directory
Open Source Directory Open Source Java Directory The Open Source Java...;   Open Source Directory Services Apple's Open Directory architecture includes source code for both directory client access and directory servers
Open Source GPS
Open Source GPS Open Source GPSToolKit The goal of the GPSTk project is to provide a world class, open source computing suite to the satellite... Source GPS HOW TO On a recent organised cycling ride in the Test Valley down
Open Source VoIP
Open Source VoIP/TelePhony Open source VoIP/Telephony One of the first open source VoIP projects -and one of the earliest VoIP PBXes... for the platform, both commercial and open source.     
Open Source Forum
provide an opportunity for all Open Source participants to express their views. The Forums are intended to provide Open Source participants, including small...Open Source Forum Open Source Forum on Software Patents The Open
Open Source Business,What is OSS,Advantage of Open Source in Business
. Usually the business model of the firms reside open source software that provide...Open Source for Business Earlier it was uncommon to use the open source... and it was awful to learn all the commands of different open source software
Open Source Project Management
provide these features thanks to the open-source nature of ]project-open...Open Source Project Management Open Source Project Management... to access our support forums.      An Open-Source Based
Open Source Community
contributions and involvement to provide Cisco-centric Open Source Tools, Scripts...-source model The company, called Source Labs, will provide certification...-source products, much as they rely on Dell to provide computing gear, said Brad
Spring data source C3P0
Spring data source C3P0 In Spring , we connect to a database via data source. When we are using jdbc layer in Spring , JNDI provide us data source or you can configure your own data source by implementing connection pool , provided
Open Source Business Model
, how open source business models work so as to provide a starting point...Open Source Business Model What is the open source business model It is often confusing to people to learn that an open source company may give its
please provide the code
please provide the code   Develop a multi-client chat application
Open Source Movement
, and modify source code, there are more eyes to spot bugs and provide fixes. ...Open Source Movement Open source movement Wikipedia The open source movement is an offshoot of the free software movement that advocates
Open Source e-commerce
of an osCommerce online store. osCommerce combines Open Source solutions to provide a free...Open Source e-commerce Open Source Online Shop E-Commerce Solutions Open source Commerce is an Open
Please provide the code
Please provide the code   Write a program to recursively download the web pages available in the given site URL
Open Source Accounting Software
Open Source Accounting Software Open Source Accounting Software TurboCASH .7 is an open source accounting package that is free for everyone...). It is one of the world's first fully-featured open source accounts packages for small
Please provide the code
Please provide the code   Program to find depth of the file in a directory and list all files those are having more number of parent directories
Open Source E-mail
Open Source E-mail Server MailWasher Server Open Source MailWasher Server is an open-source, server-side junk mail filter package for businesses. MailWasher Server differs from other open-source server anti-spam
Provide the code please
Provide the code please   Program to calculate the sum of two big numbers (the numbers can contain more than 1000 digits). Don't use any library classes or methods (BigInteger etc
Please provide the code
Please provide the code   Create a file system: We just have one file on the hard disk. But we can create directories, sub-directories and files in that file only
Open Source CMS
Open Source CMS Open Source Content... and developers of Open Source Content Management solutions. OSCOM organizes... of Open Source Content Management. OSCOM promotes Open Source Content Management
Please provide the coding for this problem
Please provide the coding for this problem  Please provide the coding for the following problem. Write a "hangman" game that randomly generates a word and prompts the user to guess one letter at a time. Each letter in the word
Open Source CRM
CRM The open source community can't provide a drop-in replacement...Open Source CRM Open Source CRM solution Daffodil CRM is a commercial Open Source CRM Solution that helps enterprise businesses to manage customer
VoIP PBX Open Source
feature base that the Asterisk open source community and its partners provide... VoIP PBX Open Source          Open  Source IP PBX Digium has released
provide me the program for that ques.
provide me the program for that ques.  wtite a program in java there is a class readchar.the functionality of this class is to read a string from the console and display the characters of that string on the console.   
Open Source Exchange
and involvement to provide Cisco-centric Open Source Tools, Scripts and Utilities...Open Source Exchange Exchange targeted by open-source group A new open-source effort dubbed
provide code - Swing AWT
provide code  Dear frnds please provide code for two player CHESS GAME.....using swings,awt concepts   Hi friend, import java.awt.*; import java.awt.event.*; import java.util.*; import javax.swing.*; public
Open Source Intelligence
Open Source Intelligence Open source Intelligence The Open Source..., a practice we term "Open Source Intelligence". In this article, we use three...; Open source intelligence Wikipedia Open Source Intelligence (OSINT
Open Source Metaverses
Open Source Metaverses OpenSource Metaverse Project The OpenSource Metaverse Project provides an open source metaverse engine along the lines... and creation of one's own worlds. Closed source virtual worlds exist already
Open Source Ajax
Open Source Ajax Source Ajax frameworks for developing cutting edge web 2.0 applications to satisfy your clients. There are many Open Source Ajax... and responsive websites. The Open Source Ajax Frameworks has given the ability
Open Source Browser
Open Source Browser Building an Open Source Browser One year ago -ages ago by Internet standards- Netscape released in open source... browser. Based on KHTML and KJS from KDE's Konqueror open source project
Open Source E-mail Server
Open Source E-mail Server MailWasher Server Open Source MailWasher Server is an open-source, server-side junk mail filter package for businesses. MailWasher Server differs from other open-source server anti-spam
please provide code - Java Beginners
please provide code  provide code to snake game in J2SE
Open Source Antivirus
Open Source Antivirus Developing Open Source AntiVirus Engines... a significant contribution to the development of a viable, working open source antivirus product.     Open Source Anti-Virus for the Whole
Microsoft Open source
to provide companies with a service to help them choose the right open-source...Microsoft Open source Microsoft open to open source Microsoft Corp. says it is looking to turn over more of its programs to open-source software
Open Source Servers
Open Source Servers Open Source Streaming Server the open source...; these tools are not available as part of the open source project. Technical..., and SUSE Linux Enterprise Server, an award-winning open-source server for delivering
provide me code - Java Beginners
provide me code  can any body provide code for SNAKE XENZIA game in NOKIA mobile? please urgently
Open Source c++
; Astronomy C/C++ source code From time to time, I'm asked to provide source...Open Source c++ Open Source C++ During our professional.... Another problem is that hardware vendors provide different interfaces
Open Source Email Archiving - Open source software to achieve emails
Open Source Email Archiving - Open source software to achieve emails In this section we will see the features open source email archiving software available... the best open source email archiving software as per your business requirement
MySql Open Source
in an interview at the Open Source Business Conference here but wouldn't provide details...MySql Open Source MySQL Open Source License MySQL is free use for those.... Under the Open Source License, you must release the complete source code
provide example in J2ee/jsp - JSP-Servlet
provide example in J2ee/jsp  how to manage search options page in jsp using back end as oracle/sql? i am using multiple search options. so please provide code for this or tutorial
JDBC doesn't provide an EOF method.
JDBC doesn't provide an EOF method.  How can I know when I reach the last record in a table, since JDBC doesn't provide an EOF method

Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.