Camel
  1. Camel
  2. CAMEL-4024

support decompression of zip files

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.7.1
    • Fix Version/s: Future
    • Component/s: camel-core
    • Labels:
      None
    • Environment:

      All

      Description

      Two cases: Zip files with zip files inside (wrapping zip files) and inner zip files with uncompressed payloads. I haven't really thought through how to deal with all of the options in these cases but I will attach the code to deal with the simple ones

        Activity

        Hide
        Markus M. May added a comment -

        Works quite nice, except on windows machines, when the encoding of the zipped files is not equals to UTF-8. There does not seem to be one nice solution for this problem. I gave up on this one ;-(

        Show
        Markus M. May added a comment - Works quite nice, except on windows machines, when the encoding of the zipped files is not equals to UTF-8. There does not seem to be one nice solution for this problem. I gave up on this one ;-(
        Hide
        ray added a comment -

        I finally got around to fixing this so that you only need one class

        Show
        ray added a comment - I finally got around to fixing this so that you only need one class
        Hide
        ray added a comment - - edited

        Example usage:

        from(fromUri)
          .split().method(OuterZipFileDecompressingSplitter.class, "split")
          .streaming()
          .parallelProcessing()
          .to("direct:innerZipFile");
        
        from("direct:innerZipFile")
          .split().method(InnerZipFileDecompressingSplitter.class, "split")
          .streaming()
          .parallelProcessing()
          .to("direct:furtherProcessing");
        
        Show
        ray added a comment - - edited Example usage: from(fromUri) .split().method(OuterZipFileDecompressingSplitter.class, "split" ) .streaming() .parallelProcessing() .to( "direct:innerZipFile" ); from( "direct:innerZipFile" ) .split().method(InnerZipFileDecompressingSplitter.class, "split" ) .streaming() .parallelProcessing() .to( "direct:furtherProcessing" );

          People

          • Assignee:
            Unassigned
            Reporter:
            ray
          • Votes:
            2 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:

              Development