Converting DeflateEncoder to Java.
Convering GzipEncoder to Java.
Converting NoOpEncoder to Java.