Skip to content
Permalink
Browse files
BATCHEE-85 rename property to 'encoding' only.
This is the name we already use in similar situations.
  • Loading branch information
struberg committed Dec 8, 2015
1 parent 422c2b7 commit b3e6fc115ef7b95e8a7fe174faac6d2fa0021770
Showing 1 changed file with 3 additions and 3 deletions.
@@ -67,7 +67,7 @@ public abstract class JSefaReader extends CountedReader {
@Inject
@BatchProperty
@Documentation("the encoding to use while reading the file. E.g. \"UTF-8\". If not specified the system default encoding is being used.")
protected String fileEncoding;
protected String encoding;

protected Deserializer deserializer;

@@ -76,8 +76,8 @@ public void open(final Serializable checkpoint) throws Exception {
deserializer = initDeserializer();

Charset charset;
if (fileEncoding != null && !fileEncoding.isEmpty()) {
charset = Charset.forName(fileEncoding);
if (encoding != null && !encoding.isEmpty()) {
charset = Charset.forName(encoding);
} else {
charset = Charset.defaultCharset();
}

0 comments on commit b3e6fc1

Please sign in to comment.