| Package | nochump.util.zip |
| Class | public class Deflater |
| Method | Defined by | ||
|---|---|---|---|
|
Deflater()
Creates a new deflater.
| Deflater | ||
|
deflate(output:ByteArray):uint
Deflates the current input block to the given array.
| Deflater | ||
|
getBytesRead():uint
Gets the number of input bytes.
| Deflater | ||
|
getBytesWritten():uint
Gets the number of output bytes.
| Deflater | ||
|
reset():void
Resets the deflater.
| Deflater | ||
|
setInput(input:ByteArray):void
Sets the data which should be compressed next.
| Deflater | ||
| Deflater | () | constructor |
public function Deflater()Creates a new deflater.
| deflate | () | method |
public function deflate(output:ByteArray):uintDeflates the current input block to the given array.
Parametersoutput:ByteArray — the buffer where to write the compressed data.
|
uint |
| getBytesRead | () | method |
public function getBytesRead():uintGets the number of input bytes.
Returnsuint |
| getBytesWritten | () | method |
public function getBytesWritten():uintGets the number of output bytes.
Returnsuint |
| reset | () | method |
public function reset():voidResets the deflater. The deflater acts afterwards as if it was just created.
| setInput | () | method |
public function setInput(input:ByteArray):voidSets the data which should be compressed next.
Parametersinput:ByteArray — the buffer containing the input data.
|