Compression adapter for Bz2
Class constructor
| Parameters: | null|array|Traversable – (Optional) Options to set |
|---|---|
| Throws ExceptionExtensionNotLoadedException: | |
| if bz2 extension not loaded | |
Sets a new blocksize
| Parameters: | integer – |
|---|---|
| Throws ExceptionInvalidArgumentException: | |
| Return type: | Bz2 |
Sets the archive to use for de-/compression
| Parameters: | string – Archive to use |
|---|---|
| Return type: | Bz2 |
Compresses the given content
| Parameters: | string – |
|---|---|
| Return type: | string |
| Throws : | ExceptionRuntimeException |
Decompresses the given content
| Parameters: | string – |
|---|---|
| Return type: | string |
| Throws : | ExceptionRuntimeException |