4 * This file is part of Zippy.
6 * (c) Alchemy <info@alchemy.fr>
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
12 namespace Alchemy\Zippy\Parser;
14 use Alchemy\Zippy\Exception\RuntimeException;
16 interface ParserInterface
19 * Parses a file listing
21 * @param string $output The string to parse
23 * @return array An array of Member properties (location, mtime, size & is_dir)
25 * @throws RuntimeException In case the parsing process failed
27 public function parseFileListing($output);
30 * Parses the inflator binary version
32 * @param string $output
34 * @return string The version
36 public function parseInflatorVersion($output);
39 * Parses the deflator binary version
41 * @param string $output
43 * @return string The version
45 public function parseDeflatorVersion($output);