GzipCompressor.compressStream ( streamData  ) 

GZIP compression stream.

Parameters:
$streamData Mixed non-object stream data
Returns:
$streamData The compressed stream data
Exceptions:
InvalidObjectException If the stream is an object

Implements Compressor.

Definition at line 61 of file class_GzipCompressor.php.

00061                                                      {
00062                 if (is_object($streamData)) {
00063                         // Throw an exception
00064                         throw new InvalidObjectException($streamData, self::EXCEPTION_UNEXPECTED_OBJECT);
00065                 }
00066 
00067                 // Return the compressed stream
00068                 return gzcompress($streamData, 1);
00069         }


Generated on Mon Dec 8 01:12:46 2008 for Ship-Simulator by  doxygen 1.5.6