class documentation

class twisted.python.zipstream._FileEntry: (source)

Known subclasses: twisted.python.zipstream.DeflatedZipFileEntry, twisted.python.zipstream.ZipFileEntry

View In Hierarchy

Abstract superclass of both compressed and uncompressed variants of file-like objects within a zip archive.

Instance Variable chunkingZipFile a chunking zip file.
Instance Variable length The number of bytes within the zip file that represent this file. (This is the size on disk, not the number of decompressed bytes which will result from reading it.)
Instance Variable fp the underlying file object (that contains pkzip data). Do not touch this, please. It will quite likely move or go away.
Instance Variable closed File-like 'closed' attribute; True before this file has been closed, False after.
Instance Variable finished An older, broken synonym for 'closed'. Do not touch this, please.
Method __init__ Create a _FileEntry from a ChunkingZipFile.
Method isatty Returns false because zip files should not be ttys
Method close Close self (file-like object)
Method readline Read a line.
Method __next__ Implement next as file does (like readline, except raises StopIteration at EOF)
Method readlines Returns a list of all the lines
Method xreadlines Returns an iterator (so self)
Method __iter__ Returns an iterator (so self)
Method __enter__ Undocumented
Method __exit__ Undocumented
chunkingZipFile = (source)
a chunking zip file.
(type: ChunkingZipFile)
length = (source)
The number of bytes within the zip file that represent this file. (This is the size on disk, not the number of decompressed bytes which will result from reading it.)
the underlying file object (that contains pkzip data). Do not touch this, please. It will quite likely move or go away.
closed = (source)
File-like 'closed' attribute; True before this file has been closed, False after.
(type: bool)
finished = (source)
An older, broken synonym for 'closed'. Do not touch this, please.
(type: int)
def isatty(self): (source)

Returns false because zip files should not be ttys

def close(self): (source)

Close self (file-like object)

def readline(self): (source)

Read a line.

def __next__(self): (source)

Implement next as file does (like readline, except raises StopIteration at EOF)

def readlines(self): (source)

Returns a list of all the lines

def xreadlines(self): (source)

Returns an iterator (so self)

def __iter__(self): (source)

Returns an iterator (so self)

def __enter__(self): (source)

Undocumented

def __exit__(self, exc_type, exc_value, traceback): (source)

Undocumented

API Documentation for Twisted, generated by pydoctor 20.12.1 at 2021-02-28 19:53:36.