class documentation

class FileBlobSource(BaseBlobSource):

Constructor: FileBlobSource(path)

View In Hierarchy

A BaseBlobSource for reading a blob from a file.

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 _path path to file
def __init__(self, path):

The default constructor.

Parameters
path:strpath to file
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
_path =

path to file