Editor: dump content of files in hexadecimal and as text
Write a Java Console application to dump the contents of a file in hexadecimal and as 8-bit ASCII text. Don't prompt the user for the name of the input file; get the file name as a parameter (argument) on the command line. Similarly, write the dump on standard output with System.out.println, which can be redirected to a file by the user with ">" on the command line. You may add any options that you feel are necessary, and those options will appear on the command line as additional parameters/arguments.
File dump utilities are not the place for graphical user Interfaces. They must be fast, simple, and correct, because they will be used to dump very large files, and the resulting dump file is usually five times bigger than the original input file. In this application, you will need to make several decisions based on speed. For example, reusing StringBuffer objects is FASTER than creating temporary String objects (up to 20% faster in this application). You will also need to recognize the difference Between bytes and characters: the input file must be read as bytes, while the dump may be written as characters.