A Java application that downloads files from a list of URLs and records metadata about each URL.
This program reads URLs from an input file, retrieves information about each URL, and downloads supported files to a specified directory. It also generates an output report containing metadata and download results.
- Reads URLs from an input file
- Retrieves URL metadata
- Downloads text-based files (HTML, TXT)
- Downloads binary files (JPG, JPEG, GIF, PDF, DOCX)
- Saves downloaded files to a specified directory
- Generates a detailed output report
- Handles invalid URLs and download errors
- Java 8 or higher
javac Phase2Downloader.javajava Phase2Downloader -i input.txt -o output.txt -d downloadsjava Phase2Downloader -i urls.txt -o report.txt -d downloaded_filesThis project was completed for CSCI 370 at Queens College as a programming assignment focused on:
- Java networking with
URLandURLConnection - File input/output operations
- Command-line argument processing
- Downloading web resources
- Handling text and binary files
- Exception handling and reporting
- Java
- URLConnection API
- BufferedReader / BufferedWriter
- FileInputStream / FileOutputStream
Giorgos Stephanis
Queens College – CSCI 370