Class ReadURL
java.lang.Object
|
+--ReadURL
- public class ReadURL
- extends java.lang.Object
Read text from a URL and write it to standard output.
Usage:
- The typical scenario for using this class is (all on a single line,
invoked from a command line, shell script, BAT file, or cron job):
java ReadURL some_url
For example:
java ReadURL http://www.bristle.com
Assumptions:
Effects:
- Display the contents of the URL to standard output.
Anticipated Changes:
- Add logic to pass HTTP credentials to URL.
Notes:
Implementation Notes:
Portability Issues:
- Version:
- $Revision: 1 $
- Author:
- $Author: FStluka $
Method Summary |
static void |
main(java.lang.String[] args)
Main method, invoked from the command line. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReadURL
public ReadURL()
main
public static void main(java.lang.String[] args)
throws java.net.MalformedURLException,
java.io.IOException
- Main method, invoked from the command line.
- Parameters:
args
- Array of command line argument strings- Returns:
- None.
- Throws:
java.net.MalformedURLException
- java.io.IOException
-