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, getGridFS, getId, getLength, getMD5, getMetaData, getUploadDate, isPartialObject, keySet, markAsPartialObject, numChunks, put, putAll, putAll, removeField, save, setGridFS, setMetaData, toMap, toString, validate
public InputStream getInputStream()
public long writeTo(String filename) throws IOException
filename
- the file name on diskIOException
MongoException
public long writeTo(File f) throws IOException
f
- the File objectIOException
MongoException
public long writeTo(OutputStream out) throws IOException
out
- the OutputStreamIOException
MongoException