$ java TextTester
usage: java TextTester [-u] source
$ java TextTester short.txt
"Being aware is more important than being smart"
Phil Jackson. Sacred Hoops: spiritual lessons
of a hardwood warrior. Hyperion Books, 1995.
$ java TextTester -u http://cs.ucsb.edu/~cs10/samplepage.html
A sample web page
Some sample text - what is displayed on this web page.
A 2nd line of text, but display does not include a new line.
A line break tag - does display as a new line.
End of sample text.
$ java TextTester short.txt longer.txt
extra input source: longer.txt
$ java TextTester badfilename
Input/output error - java.io.FileNotFoundException: badfilename (No such file or directory)
$ java TextTester -u http://cs.ucsb.edu/~cs10/badpage
Input/output error - java.io.FileNotFoundException: http://cs.ucsb.edu/~cs10/badpage
$ java TextTester -u cs.ucsb.edu/~cs10/samplepage.html
Input/output error - java.net.MalformedURLException: no protocol: cs.ucsb.edu/~cs10/samplepage.html