Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-1024

Change visibility of GridFSDBFile.getChunk(int) to public

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Icon: Major - P3 Major - P3
    • None
    • 2.11.3
    • GridFS
    • 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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            Hallonbat Jan Hallonsten [X]
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: