39
39
* Implementation of GridFS v1.0
40
40
*
41
41
* <a href="http://www.mongodb.org/display/DOCS/GridFS+Specification">GridFS 1.0 spec</a>
42
- *
42
+ *
43
43
* @dochub gridfs
44
44
*/
45
45
public class GridFS {
@@ -201,7 +201,7 @@ public void remove( ObjectId id ){
201
201
_filesCollection .remove ( new BasicDBObject ( "_id" , id ) );
202
202
_chunkCollection .remove ( new BasicDBObject ( "files_id" , id ) );
203
203
}
204
-
204
+
205
205
/**
206
206
* removes all files matching the given filename
207
207
* @param filename
@@ -219,7 +219,7 @@ public void remove( DBObject query ){
219
219
f .remove ();
220
220
}
221
221
}
222
-
222
+
223
223
224
224
// --------------------------
225
225
// ------ writing -------
@@ -240,7 +240,7 @@ public GridFSInputFile createFile( byte[] data ){
240
240
* creates a file entry.
241
241
* After calling this method, you have to call save() on the GridFSInputFile file
242
242
* @param f the file object
243
- * @return
243
+ * @return
244
244
* @throws IOException
245
245
*/
246
246
public GridFSInputFile createFile ( File f )
@@ -262,7 +262,7 @@ public GridFSInputFile createFile( InputStream in ){
262
262
* creates a file entry.
263
263
* after calling this method, you have to call save() on the GridFSInputFile file
264
264
* @param in an inputstream containing the file's data
265
- * @param closeStreamOnPersist indicate the passed in input stream should be closed
265
+ * @param closeStreamOnPersist indicate the passed in input stream should be closed
266
266
* once the data chunk persisted
267
267
* @return
268
268
*/
@@ -286,7 +286,7 @@ public GridFSInputFile createFile( InputStream in , String filename ){
286
286
* After calling this method, you have to call save() on the GridFSInputFile file
287
287
* @param in an inputstream containing the file's data
288
288
* @param filename the file name as stored in the db
289
- * @param closeStreamOnPersist indicate the passed in input stream should be closed
289
+ * @param closeStreamOnPersist indicate the passed in input stream should be closed
290
290
* once the data chunk persisted
291
291
* @return
292
292
*/
@@ -302,7 +302,7 @@ public GridFSInputFile createFile( InputStream in , String filename, boolean clo
302
302
public GridFSInputFile createFile (String filename ) {
303
303
return new GridFSInputFile ( this , filename );
304
304
}
305
-
305
+
306
306
/**
307
307
* This method creates an empty {@link GridFSInputFile} instance. On this
308
308
* instance an {@link java.io.OutputStream} can be obtained using the
@@ -311,7 +311,7 @@ public GridFSInputFile createFile(String filename) {
311
311
* {@link GridFSInputFile#setFilename(String)}. The file will be completely
312
312
* written and closed after calling the {@link java.io.OutputStream#close()}
313
313
* method on the output stream.
314
- *
314
+ *
315
315
* @return GridFS file handle instance.
316
316
*/
317
317
public GridFSInputFile createFile () {
0 commit comments