Unix cat written in Java