Java compressor : switch to int for mask