diff options
Diffstat (limited to 'vendor/nelexa/zip/src/PhpZip/Stream/ZipInputStreamInterface.php')
-rw-r--r-- | vendor/nelexa/zip/src/PhpZip/Stream/ZipInputStreamInterface.php | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/vendor/nelexa/zip/src/PhpZip/Stream/ZipInputStreamInterface.php b/vendor/nelexa/zip/src/PhpZip/Stream/ZipInputStreamInterface.php new file mode 100644 index 0000000..2093c03 --- /dev/null +++ b/vendor/nelexa/zip/src/PhpZip/Stream/ZipInputStreamInterface.php @@ -0,0 +1,53 @@ +<?php + +namespace PhpZip\Stream; + +use PhpZip\Model\ZipEntry; +use PhpZip\Model\ZipModel; + +/** + * Read zip file + * + * @author Ne-Lexa alexey@nelexa.ru + * @license MIT + */ +interface ZipInputStreamInterface +{ + /** + * @return ZipModel + */ + public function readZip(); + + /** + * @return ZipEntry + */ + public function readEntry(); + + /** + * @param ZipEntry $entry + * @return string + */ + public function readEntryContent(ZipEntry $entry); + + /** + * @return resource + */ + public function getStream(); + + /** + * Copy the input stream of the LOC entry zip and the data into + * the output stream and zip the alignment if necessary. + * + * @param ZipEntry $entry + * @param ZipOutputStreamInterface $out + */ + public function copyEntry(ZipEntry $entry, ZipOutputStreamInterface $out); + + /** + * @param ZipEntry $entry + * @param ZipOutputStreamInterface $out + */ + public function copyEntryData(ZipEntry $entry, ZipOutputStreamInterface $out); + + public function close(); +} |