Retrieve this file’s chunks collection.
Retrieve this file’s chunks collection.
Saves this file to the database.
Saves this file to the database. This will overwrite the old entry if it already exists. This will work properly only if mode was initialized to “w” or “w+”.
Retrieves the file collection associated with this object.
Retrieves the file collection associated with this object.
Retrieves a single character from this file.
Retrieves a single character from this file.
Opens the file from the database and initialize this object.
Opens the file from the database and initialize this object. Also creates a new one if file does not exist.
Writes a string to the file with a newline character appended at the end if the given string does not have one.
Writes a string to the file with a newline character appended at the end if the given string does not have one.
Retrieves the contents of this file and advances the read/write head.
Retrieves the contents of this file and advances the read/write head. Works with Buffers only.
Retrieves the contents of this file and advances the read/write head.
Retrieves the contents of this file and advances the read/write head. Works with Buffers only.
Retrieves the contents of this file and advances the read/write head.
Retrieves the contents of this file and advances the read/write head. Works with Buffers only.
Reads the data of this file.
Reads the data of this file.
Reads the data of this file.
Reads the data of this file.
Deletes all the chunks of this file in the database if mode was set to “w” or “w+” and resets the read/write head to the initial position.
Deletes all the chunks of this file in the database if mode was set to “w” or “w+” and resets the read/write head to the initial position.
Moves the read/write head to a new location.
Moves the read/write head to a new location.
Moves the read/write head to a new location.
Moves the read/write head to a new location.
Moves the read/write head to a new location.
Moves the read/write head to a new location.
Deletes all the chunks of this file in the database.
Deletes all the chunks of this file in the database.
Stores a file from the file system to the GridFS database.
Stores a file from the file system to the GridFS database.
Writes some data.
Writes some data. This method will work properly only if initialized with mode “w” or “w+”.
Writes some data.
Writes some data. This method will work properly only if initialized with mode “w” or “w+”.
Writes some data.
Writes some data. This method will work properly only if initialized with mode “w” or “w+”.
Writes some data.
Writes some data. This method will work properly only if initialized with mode “w” or “w+”.
Grid Store Extensions