Java com.mongodb.gridfs GridFSInputFile fields, constructors, methods, implement or subclass

Example usage for Java com.mongodb.gridfs GridFSInputFile fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.mongodb.gridfs GridFSInputFile.

The text is from its open source code.

Method

StringgetFilename()
Gets the filename.
ObjectgetId()
Gets the id.
longgetLength()
Gets the file's length.
StringgetMD5()
Gets the observed MD5 during transfer
DBObjectgetMetaData()
Gets the file metadata.
OutputStreamgetOutputStream()
After retrieving this java.io.OutputStream , this object will be capable of accepting successively written data to the output stream.
Objectput(final String key, final Object v)
voidsave()
Calls GridFSInputFile#save(long) with the existing chunk size.
voidsetChunkSize(final long chunkSize)
Set the chunk size.
voidsetContentType(final String contentType)
Sets the content type (MIME type) on the GridFS entry.
voidsetFilename(final String filename)
Sets the file name on the GridFS entry.
voidsetId(final Object id)
Sets the ID of this GridFS file.
voidsetMetaData(final DBObject metadata)
Gets the file metadata.
voidvalidate()
Verifies that the MD5 matches between the database and the local file.