Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-17990

FileInputStreamCache is missing some InputStream delegates

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.14.0, 3.16.0
    • 3.14.3, 3.17.0
    • camel-core
    • None
    • Unknown

    Description

      FileInputStreamCache extends InputStream but is missing a few delegates for its field "private InputStream stream;".
      this implies calling methods from the parent which are suboptimal on performance level, for example "public int read(byte[] b, int off, int len)" on InutStream is looping byte by byte while the instance in the class field might have a specific optimised implementation.

      Attachments

        Activity

          People

            Unassigned Unassigned
            grigoni Gianandrea Rigoni
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: