[JAVA-1107] GridFSInputFile should be able to write at a specified position Created: 08/Feb/14 Updated: 03/Sep/15 Resolved: 02/Sep/15 |
|
| Status: | Closed |
| Project: | Java Driver |
| Component/s: | GridFS |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | New Feature | Priority: | Major - P3 |
| Reporter: | Frank Wen | Assignee: | Ross Lawley |
| Resolution: | Won't Fix | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
It will be great if GridFSInputFile can write at specified position, not always from the beginning of a file, i.e. can you add a method write( long position, byte[] b , int off , int len ) in MyOutputStream in file GridFSInputFile.java? |
| Comments |
| Comment by Ross Lawley [ 02/Sep/15 ] |
|
My apologies - this is a Won't Fix. The new GridFS specification does not support this directly as updates of existing files is not supported by the new API. However, as we implement the InputStream and OutputStream duplicating and updating the contents of a file at a specific point should be possible with the new API. |
| Comment by Ross Lawley [ 02/Sep/15 ] |
|
There is a new GridFS implementation This implementation the GridFSUploadStreamImpl implements OutputStream. |