Package com.google.refine.importing
Class EncodingGuesser
java.lang.Object
com.google.refine.importing.EncodingGuesser
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 -
Method Summary
Modifier and TypeMethodDescriptionstatic final voidguess(ImportingJob job) static final voidguessInitialEncoding(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
-
Constructor Details
-
EncodingGuesser
public EncodingGuesser()
-
-
Method Details
-
guess
- Throws:
FileNotFoundExceptionIOException
-
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-
-