\PhpZip\Model\DataZipSourceFileData

Class ZipFileData.

Summary

Methods
Properties
Constants
__construct()
hasRecompressData()
getDataAsStream()
getDataAsString()
copyDataToStream()
copyCompressedDataToStream()
getSourceEntry()
getCompressedSize()
getUncompressedSize()
getOffset()
__destruct()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$zipReader
$stream
$sourceEntry
$offset
$uncompressedSize
$compressedSize
N/A

Properties

$zipReader

$zipReader : \PhpZip\IO\ZipReader

Type

ZipReader

$sourceEntry

$sourceEntry : \PhpZip\Model\ZipEntry

Type

ZipEntry

$offset

$offset : int

Type

int

$uncompressedSize

$uncompressedSize : int

Type

int

$compressedSize

$compressedSize : int

Type

int

Methods

__construct()

__construct(\PhpZip\IO\ZipReader  $zipReader, \PhpZip\Model\ZipEntry  $zipEntry, int  $offsetData) : mixed

ZipFileData constructor.

Parameters

\PhpZip\IO\ZipReader $zipReader
\PhpZip\Model\ZipEntry $zipEntry
int $offsetData

Returns

mixed —

hasRecompressData()

hasRecompressData(\PhpZip\Model\ZipEntry  $entry) : bool

Parameters

\PhpZip\Model\ZipEntry $entry

Returns

bool —

getDataAsStream()

getDataAsStream() : resource

Throws

\PhpZip\Exception\ZipException

Returns

resource —

returns stream data

getDataAsString()

getDataAsString() : string

Throws

\PhpZip\Exception\ZipException

Returns

string —

returns data as string

copyDataToStream()

copyDataToStream(resource  $outputStream) : mixed

Parameters

resource $outputStream

Output stream

Throws

\PhpZip\Exception\ZipException
\PhpZip\Exception\Crc32Exception

Returns

mixed —

copyCompressedDataToStream()

copyCompressedDataToStream(resource  $outputStream) : mixed

Parameters

resource $outputStream

Output stream

Returns

mixed —

getSourceEntry()

getSourceEntry() : \PhpZip\Model\ZipEntry

Returns

\PhpZip\Model\ZipEntry —

getCompressedSize()

getCompressedSize() : int

Returns

int —

getUncompressedSize()

getUncompressedSize() : int

Returns

int —

getOffset()

getOffset() : int

Returns

int —

__destruct()

__destruct() : mixed

{@inheritdoc}

Returns

mixed —