public class GridFSDBFile extends GridFSFile
InputStream to stream the data into| Modifier and Type | Class and Description |
|---|---|
(package private) class |
GridFSDBFile.MyInputStream |
_aliases, _chunkSize, _contentType, _extradata, _filename, _fs, _id, _length, _md5, _uploadDate, VALID_FIELDS| Constructor and Description |
|---|
GridFSDBFile() |
| Modifier and Type | Method and Description |
|---|---|
(package private) byte[] |
getChunk(int i) |
java.io.InputStream |
getInputStream()
Returns an InputStream from which data can be read.
|
(package private) void |
remove() |
long |
writeTo(java.io.File f)
Writes the file's data to a file on disk.
|
long |
writeTo(java.io.OutputStream out)
Writes the file's data to an OutputStream.
|
long |
writeTo(java.lang.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 java.io.InputStream getInputStream()
public long writeTo(java.lang.String filename)
throws java.io.IOException
filename - the file name on diskjava.io.IOException - if there are problems writing to the filepublic long writeTo(java.io.File f)
throws java.io.IOException
f - the File objectjava.io.IOException - if there are problems writing to the filepublic long writeTo(java.io.OutputStream out)
throws java.io.IOException
out - the OutputStreamjava.io.IOException - if there are problems writing to outbyte[] getChunk(int i)
void remove()