mongodb/mongo-java-driver — pull request #74 by daizw (2012-05-09 08:37:37+00:00)
Title: fixed a bug in MyInputStream.skip()

fixed a bug in MyInputStream.skip(): if _currentChunkIdx == -1, skip() will not work and throw an exception.

test code:

GridFSDBFile file = ...
InputStream fis = file.getInputStream();
fis.skip(10);