Class EncodingGuesser

java.lang.Object
com.google.refine.importing.EncodingGuesser

public final class EncodingGuesser extends Object
This class tries to find the correct encoding based on the http://site.icu-project.org/ and the icu4j library http://site.icu-project.org/home/why-use-icu4j.
Author:
Steffen Stundzig
  • Constructor Details

    • EncodingGuesser

      public EncodingGuesser()
  • Method Details

    • guess

      public static final void guess(ImportingJob job) throws FileNotFoundException, IOException
      Throws:
      FileNotFoundException
      IOException
    • guessInitialEncoding

      public static final void guessInitialEncoding(List<com.fasterxml.jackson.databind.node.ObjectNode> fileRecords, com.fasterxml.jackson.databind.node.ObjectNode options)
      uses the first found encoding in the file records as initial encoding and put them into the options
      Parameters:
      fileRecords -
      options -