* Creates a new deflater with given compression level * @param level the compression level, a value between NO_COMPRESSION and BEST_COMPRESSION. * beginning and the adler checksum at the end of the output. This is * useful for the GZIP/PKZIP formats.
()
| 94 | * useful for the GZIP/PKZIP formats. |
| 95 | */ |
| 96 | public constructor() { |
| 97 | this._pending = new PendingBuffer(DeflaterConstants.pendingBufSize); |
| 98 | this._engine = new DeflaterEngine(this._pending); |
| 99 | this.reset(); |
| 100 | } |
| 101 | |
| 102 | /** |
| 103 | * Returns true, if the input buffer is empty. |