public class GridFSDBFile extends GridFSFile
_fs| Constructor and Description |
|---|
GridFSDBFile() |
| Modifier and Type | Method and Description |
|---|---|
InputStream |
getInputStream()
Returns an InputStream from which data can be read
|
long |
writeTo(File f)
Writes the file's data to a file on disk
|
long |
writeTo(OutputStream out)
Writes the file's data to an OutputStream
|
long |
writeTo(String filename)
Writes the file's data to a file on disk
|
containsField, containsKey, get, getAliases, getChunkSize, getContentType, getFilename, getId, getLength, getMD5, getMetaData, getUploadDate, isPartialObject, keySet, markAsPartialObject, numChunks, put, putAll, putAll, removeField, save, setGridFS, setMetaData, toMap, toString, validatepublic InputStream getInputStream()
public long writeTo(String filename) throws IOException
filename - the file name on diskIOExceptionMongoExceptionpublic long writeTo(File f) throws IOException
f - the File objectIOExceptionMongoExceptionpublic long writeTo(OutputStream out) throws IOException
out - the OutputStreamIOExceptionMongoException