You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@batchee.apache.org by st...@apache.org on 2015/12/08 10:12:29 UTC
incubator-batchee git commit: BATCHEE-85 rename property to
'encoding' only.
Repository: incubator-batchee
Updated Branches:
refs/heads/master 422c2b753 -> b3e6fc115
BATCHEE-85 rename property to 'encoding' only.
This is the name we already use in similar situations.
Project: http://git-wip-us.apache.org/repos/asf/incubator-batchee/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-batchee/commit/b3e6fc11
Tree: http://git-wip-us.apache.org/repos/asf/incubator-batchee/tree/b3e6fc11
Diff: http://git-wip-us.apache.org/repos/asf/incubator-batchee/diff/b3e6fc11
Branch: refs/heads/master
Commit: b3e6fc115ef7b95e8a7fe174faac6d2fa0021770
Parents: 422c2b7
Author: Mark Struberg <st...@apache.org>
Authored: Tue Dec 8 10:11:15 2015 +0100
Committer: Mark Struberg <st...@apache.org>
Committed: Tue Dec 8 10:11:15 2015 +0100
----------------------------------------------------------------------
.../src/main/java/org/apache/batchee/jsefa/JSefaReader.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-batchee/blob/b3e6fc11/extensions/jsefa/src/main/java/org/apache/batchee/jsefa/JSefaReader.java
----------------------------------------------------------------------
diff --git a/extensions/jsefa/src/main/java/org/apache/batchee/jsefa/JSefaReader.java b/extensions/jsefa/src/main/java/org/apache/batchee/jsefa/JSefaReader.java
index 4400897..515e146 100644
--- a/extensions/jsefa/src/main/java/org/apache/batchee/jsefa/JSefaReader.java
+++ b/extensions/jsefa/src/main/java/org/apache/batchee/jsefa/JSefaReader.java
@@ -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 abstract class JSefaReader extends CountedReader {
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();
}