Пример #1
0
        /**
         * Closes the zip entry.
         */
        public bool zip_entry_close()

        {
            if (_in == null)
            {
                return(false);
            }

            ZipEntryInputStream in = _in;
            _in = null;

            in.close();
Пример #2
0
        /**
         * Opens this zip entry for reading.
         */
        public bool zip_entry_open(Env env, ZipDirectory directory)
        {
            try {
                // php/1u07.qa
                if (_in != null)
                {
                    return(true);
                }

                _in = new ZipEntryInputStream(_binaryInput.openCopy(), _position);

                return(true);
            } catch (IOException e) {
                env.warning(e.ToString());

                return(false);
            }
        }