コード例 #1
0
ファイル: Stream.php プロジェクト: Kinetical/Kinesis
 function __construct($file = null, $mode = \IO\Stream\Mode::READ)
 {
     if (is_string($file)) {
         $file = new File($file);
     }
     if (!$file instanceof File) {
         throw new \IO\Exception('GZ\\Stream may only open GZ\\File');
     }
     parent::__construct($file, $mode);
 }