Uploaded image for project: 'Tika'
  1. Tika
  2. TIKA-1710

Replace usages of classes in org.apache.tika.io with current alternatives

    XMLWordPrintableJSON

Details

    • Patch

    Description

      Many of the classes in org.apache.tika.io were inlined from commons-io in TIKA-249, but these days most components use commons-io anyway, so in order to clean the dependencies on org.apache.tika.io in preparation of adding commons-io to tika-core, the following can be done:

      • Replace usages of classes in org.apache.tika.io within non-core components with the corresponding classes in commons-io
      • Replace usages of org.apache.tika.io.IOUtils.UTF_8 with java.nio.charset.StandardCharsets.UTF_8 (in all components, including tika-core)
      • Replace other uses of String encoding names of standard charsets with their corresponding Charsets instances from StandardCharsets (this is logically related to IOUtils as these constants should have been there as UTF_8 was before Java 7)

      Attachments

        1. TIKA-1710.patch
          265 kB
          Yaniv Kunda

        Issue Links

          Activity

            People

              Unassigned Unassigned
              kunda Yaniv Kunda
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: