Generic Java input and output library.