Details
-
Improvement
-
Resolution: Won't Fix
-
Major - P3
-
None
-
2.11.3
-
None
Description
We are using GridFS to store multipart/mixed mime messages. We would like to read these messages from GridFS via the mongodb java driver. The messages can be large up to GB size.
Since the mime parser has to reposition and create sub streams on part of the stream we started to implement our own InputStream that implemented https://javamail.java.net/nonav/docs/api/javax/mail/internet/SharedInputStream.html
and also added support for mark and reset. We used GridFSDBFile to do this but we needed to use the getChunk method which unfortunately is package private. To circumvent this we implemented
a helper class in the same package as GridFSDBFile that called getChunk. Unfortunately this workaround does not work in our deployment environment since we are using an osgi platform.
So if it is possible we would like you to change the visibility of the getChunk method to public.