class documentation

class EntryBlobSource(BaseBlobSource):

Constructor: EntryBlobSource(entry)

View In Hierarchy

A BaseBlobSource that provides the content from an entry.

This is useful if you want to create an item from an existing entry.

NOTE: this BlobSource does not keep a copy of the entry in RAM. Instead, the content will be read as needed.

Method __init__ The default constructor.
Method get_blob Return a blob.
Method get_size Get the size of a blob from this factory.
Instance Variable _entry Undocumented
Instance Variable _size Undocumented
def __init__(self, entry):

The default constructor.

Parameters
entry:pyzim.entry.ContentEntryentry to get content from
def get_blob(self):

Return a blob.

Returns
BaseBloba fresh instance of a subclass of BaseBlob
def get_size(self):

Get the size of a blob from this factory.

The default implementation instantiates a new blob using BaseBlobSource.get_blob and calls BaseBlob.get_size. Subclasses may overwrite this method for a more efficient implementation.

Please See BaseBlob.get_size for details.

Returns
intthe size of a blob in byzes
_entry =

Undocumented

_size =

Undocumented