

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


CpSc 215: Software Development Foundations Spring 2008
There are four objectives to this lab. First, you will gain some experience using classes designed in a manner similar to that prescribed by the Decorator pattern^1. Second, you will gain some experience using several components of the Java IO and networking libraries. Third, you will be introduced to the Java API documentation, and gain some experience using this documentation to understand the library. Finally, you will gain some experience developing and testing (within Eclipse) an application that requires command-line arguments.
For this lab, you will implement a simple echo tool that echoes the contents of the file passed as argument. Two types of file paths will be supported. If a local file path is passed, your application will open the corresponding file, print its contents to stdout, and terminate. If a URL is passed, your application will connect to the corresponding website (via HTTP, print the contents of the web page, and terminate. Your application should be as simple as possible. As a rule of thumb, it should be no longer than 35 lines of Java code, including whitespace.
CpSc 215: Software Development Foundations Spring 2008
To receive full credit for this lab, you must demonstrate (within Eclipse) that you have satisfied the above requirements. When you think you are ready, ask one of the TAs to check your solution. When they have checked your name off of their list, you are free to leave. If you are unable to complete the lab before the end of the period, but have made a reasonable attempt, you will receive 1/2 credit for the day. If the TA feels that you have not made a reasonable attempt, you will not receive any credit for your participation.
You may work independently or with one partner. You must not discuss the problem or the solution with classmates outside of your group. (Keep this in mind before you choose to work independently.)