Lines Matching defs:read

234         if hasattr(filename, "read"):
254 data = fpin.read(sizeEndCentDir64Locator)
266 data = fpin.read(sizeEndCentDir64)
303 data = fpin.read()
315 # Try to read the "Zip64 end of central directory" structure
325 data = fpin.read()
339 # Try to read the "Zip64 end of central directory" structure
766 "Close the writing handle before trying to read.")
771 def read(self, n=-1):
774 raise ValueError("Can't read from the ZIP file while there "
776 "Close the writing handle before trying to read.")
778 data = self._file.read(n)
820 # Chunk size to read during seek
881 header = self._fileobj.read(12)
902 If limit is specified, at most limit bytes will be read.
918 chunk = self.read(n)
933 def read(self, n=-1):
935 If the argument is omitted, None, or negative, data is read and returned until EOF is reached.
938 raise ValueError("read from closed file.")
979 """Read up to n bytes with at most one read() system call."""
1016 # Read up to n compressed bytes with at most one read() system call,
1058 data = self._fileobj.read(n)
1124 self.read(read_len)
1223 """ Class with methods to open, read, write, close, list zip files.
1230 mode: The mode can be either read 'r', write 'w', exclusive create 'x',
1250 """Open the ZIP file with mode read 'r', write 'w', exclusive create 'x',
1393 data = fp.read(size_cd)
1397 centdir = fp.read(sizeCentralDir)
1405 filename = fp.read(centdir[_CD_FILENAME_LENGTH])
1415 x.extra = fp.read(centdir[_CD_EXTRA_FIELD_LENGTH])
1416 x.comment = fp.read(centdir[_CD_COMMENT_LENGTH])
1435 # update total bytes read from central directory
1476 while f.read(chunk_size): # Check CRC-32
1517 def read(self, name, pwd=None):
1520 return fp.read()
1528 mode should be 'r' to read a file already in the ZIP file, or 'w' to
1562 raise ValueError("Can't read from the ZIP file while there "
1564 "Close the writing handle before trying to read.")
1572 fheader = zef_file.read(sizeFileHeader)
1579 fname = zef_file.read(fheader[_FH_FILENAME_LENGTH])
1581 zef_file.read(fheader[_FH_EXTRA_FIELD_LENGTH])
2349 # Only allow for FastLookup when supplied zipfile is read-only
2517 return strm.read()
2521 return strm.read()