Complete the functions, compress() and expand().
compress() reads in text from a textfile passed through StdIn. It compresses it, then outputs binary data to StdOut.
expand() reads in binary data from StdIn, expands it, and outputs text to StdOut.
The function headers are in the TextCompressor java file. Write your code there.
You can compile and run your code at the command-line. Tester files have been provided for you (in the src folder).