MediaWiki  master
SevenZipStream Class Reference

Stream wrapper around 7za filter program. More...

Public Member Functions

 stream_close ()
 
 stream_eof ()
 
 stream_flush ()
 
 stream_open ( $path, $mode, $options, &$opened_path)
 
 stream_read ( $count)
 
 stream_seek ( $offset, $whence)
 
 stream_tell ()
 
 stream_write ( $data)
 
 url_stat ( $path, $flags)
 

Static Public Member Functions

static register ()
 

Protected Attributes

resource false $stream
 

Detailed Description

Stream wrapper around 7za filter program.

Required since we can't pass an open file resource to XMLReader->open() which is used for the text prefetch.

Definition at line 36 of file SevenZipStream.php.

Member Function Documentation

◆ register()

static SevenZipStream::register ( )
static

Definition at line 40 of file SevenZipStream.php.

Referenced by TextPassDumper\finalSetup().

◆ stream_close()

SevenZipStream::stream_close ( )

Definition at line 77 of file SevenZipStream.php.

◆ stream_eof()

SevenZipStream::stream_eof ( )

Definition at line 97 of file SevenZipStream.php.

◆ stream_flush()

SevenZipStream::stream_flush ( )

Definition at line 81 of file SevenZipStream.php.

◆ stream_open()

SevenZipStream::stream_open (   $path,
  $mode,
  $options,
$opened_path 
)

Definition at line 54 of file SevenZipStream.php.

References $command, $path, and wfIsWindows().

◆ stream_read()

SevenZipStream::stream_read (   $count)

Definition at line 85 of file SevenZipStream.php.

◆ stream_seek()

SevenZipStream::stream_seek (   $offset,
  $whence 
)

Definition at line 101 of file SevenZipStream.php.

◆ stream_tell()

SevenZipStream::stream_tell ( )

Definition at line 93 of file SevenZipStream.php.

◆ stream_write()

SevenZipStream::stream_write (   $data)

Definition at line 89 of file SevenZipStream.php.

◆ url_stat()

SevenZipStream::url_stat (   $path,
  $flags 
)

Definition at line 73 of file SevenZipStream.php.

References $path.

Member Data Documentation

◆ $stream

resource false SevenZipStream::$stream
protected

Definition at line 38 of file SevenZipStream.php.


The documentation for this class was generated from the following file: