public class GridFSDBFile extends GridFSFile
InputStream to stream the data into| Constructor and Description |
|---|
GridFSDBFile() |
| Modifier and Type | Method and Description |
|---|---|
InputStream |
getInputStream()
Returns an InputStream from which data can be read.
|
long |
writeTo(File file)
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, validatepublic InputStream getInputStream()
public long writeTo(String filename) throws IOException
filename - the file name on diskIOException - if there are problems writing to the filepublic long writeTo(File file) throws IOException
file - the File objectIOException - if there are problems writing to the filepublic long writeTo(OutputStream out) throws IOException
out - the OutputStreamIOException - if there are problems writing to out