Package org.openrefine.importing
Class EncodingGuesser
- java.lang.Object
-
- org.openrefine.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 Summary
Constructors Constructor Description EncodingGuesser()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
guess(ImportingJob job)
static void
guessInitialEncoding(List<ImportingFileRecord> 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
-
-
-
Method Detail
-
guess
public static final void guess(ImportingJob job) throws FileNotFoundException, IOException
- Throws:
FileNotFoundException
IOException
-
guessInitialEncoding
public static final void guessInitialEncoding(List<ImportingFileRecord> 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
-
-
-