zipfile.ZipExtFile¶
-
class
zipfile.ZipExtFile(fileobj, mode, zipinfo, decrypter=None, close_fileobj=False)[source]¶ File-like object for reading an archive member. Is returned by ZipFile.open().
Methods¶
__enter__ |
|
__exit__ |
|
__format__ |
default object formatter |
__init__(fileobj, mode, zipinfo[, ...]) |
|
__new__((S, ...) |
|
__reduce__ |
helper for pickle |
__reduce_ex__ |
helper for pickle |
__sizeof__(() -> int) |
size of object in memory, in bytes |
__subclasshook__ |
Abstract classes can override this to customize issubclass(). |
_checkClosed |
|
_checkReadable |
|
_checkSeekable |
|
_checkWritable |
|
_update_crc(newdata, eof) |
|
close() |
|
detach |
Disconnect this buffer from its underlying raw stream and return it. |
fileno |
Returns underlying file descriptor if one exists. |
flush |
Flush write buffers, if applicable. |
isatty |
Return whether this is an ‘interactive’ stream. |
peek([n]) |
Returns buffered bytes without advancing the position. |
read([n]) |
Read and return up to n bytes. |
read1(n) |
Read up to n bytes with at most one read() system call. |
readable() |
|
readinto |
|
readline([limit]) |
Read and return a line from the stream. |
readlines |
Return a list of lines from the stream. |
seek |
Change stream position. |
seekable |
Return whether object supports random access. |
tell |
Return current stream position. |
truncate |
Truncate file to size bytes. |
writable |
Return whether object was opened for writing. |
write |
Write the given buffer to the IO stream. |
writelines |