com.mongodb.gridfs
Class GridFSDBFile

java.lang.Object
  extended by com.mongodb.gridfs.GridFSFile
      extended by com.mongodb.gridfs.GridFSDBFile
All Implemented Interfaces:
DBObject, BSONObject

public class GridFSDBFile
extends GridFSFile


Field Summary
 
Fields inherited from class com.mongodb.gridfs.GridFSFile
_fs
 
Constructor Summary
GridFSDBFile()
           
 
Method Summary
 java.io.InputStream getInputStream()
           
 long writeTo(java.io.File f)
           
 long writeTo(java.io.OutputStream out)
           
 long writeTo(java.lang.String filename)
           
 
Methods inherited from class com.mongodb.gridfs.GridFSFile
containsField, containsKey, get, getAliases, getChunkSize, getContentType, getFilename, getId, getLength, getMD5, getMetaData, getUploadDate, isPartialObject, keySet, markAsPartialObject, numChunks, put, putAll, putAll, removeField, save, setGridFS, toMap, toString, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GridFSDBFile

public GridFSDBFile()
Method Detail

getInputStream

public java.io.InputStream getInputStream()

writeTo

public long writeTo(java.lang.String filename)
             throws java.io.IOException
Throws:
java.io.IOException

writeTo

public long writeTo(java.io.File f)
             throws java.io.IOException
Throws:
java.io.IOException

writeTo

public long writeTo(java.io.OutputStream out)
             throws java.io.IOException
Throws:
java.io.IOException