Skip to content

ZipStreamWriter

QuantConnect.ZipStreamWriter

ZipStreamWriter(filename: str, zip_entry: str)

Bases: TextWriter

Provides an implementation of TextWriter to write to a zip file

Initializes a new instance of the ZipStreamWriter class

Parameters:

Name Type Description Default
filename str

The output zip file name

required
zip_entry str

The file name in the zip file

required

encoding

encoding: Encoding

When overridden in a derived class, returns the character encoding in which the output is written.

dispose

dispose(disposing: bool) -> None

Releases the unmanaged resources used by the System.IO.TextWriter and optionally releases the managed resources.

This codeEntityType is protected.

Parameters:

Name Type Description Default
disposing bool

true to release both managed and unmanaged resources; false to release only unmanaged resources.

required

flush

flush() -> None

Clears all buffers for the current writer and causes any buffered data to be written to the underlying device.

write

write(value: str) -> None

Writes a character to the text string or stream.

Parameters:

Name Type Description Default
value str

The character to write to the text stream.

required

write_line

write_line(value: str) -> None

Writes a string followed by a line terminator to the text string or stream.

Parameters:

Name Type Description Default
value str

The string to write. If value is null, only the line terminator is written.

required