java binary compression of file