Java compressor : switch to byte for input data