223. Class

223.1. Zend\Filter\Compress\Bz2

Compression adapter for Bz2

223.1.1. Methods

223.1.1.1. __construct

__construct()

Class constructor

Parameters:null|array|Traversable – (Optional) Options to set
Throws ExceptionExtensionNotLoadedException:
 if bz2 extension not loaded

223.1.1.2. getBlocksize

getBlocksize()

Returns the set blocksize

Return type:integer

223.1.1.3. setBlocksize

setBlocksize()

Sets a new blocksize

Parameters:integer
Throws ExceptionInvalidArgumentException:
 
Return type:Bz2

223.1.1.4. getArchive

getArchive()

Returns the set archive

Return type:string

223.1.1.5. setArchive

setArchive()

Sets the archive to use for de-/compression

Parameters:string – Archive to use
Return type:Bz2

223.1.1.6. compress

compress()

Compresses the given content

Parameters:string
Return type:string
Throws :ExceptionRuntimeException

223.1.1.7. decompress

decompress()

Decompresses the given content

Parameters:string
Return type:string
Throws :ExceptionRuntimeException

223.1.1.8. toString

toString()

Returns the adapter name

Return type:string