A writer for records format.
This writer should be used only inside with statement:
with records.RecordsWriter(file) as writer:
writer.write("record")
RecordsWriter will pad last block with 0 when exiting with statement scope.
def google.appengine.api.files.records.RecordsWriter.__init__ |
( |
|
self, |
|
|
|
writer, |
|
|
|
_pad_last_block = True |
|
) |
| |
Constructor.
Args:
writer: a writer to use. Should conform to FileWriter interface.
def google.appengine.api.files.records.RecordsWriter.write |
( |
|
self, |
|
|
|
data |
|
) |
| |
Write single record.
Args:
data: record data to write as string, byte array or byte sequence.
The documentation for this class was generated from the following file:
- code/googleappengine-read-only/python/google/appengine/api/files/records.py