File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
src/main/java/org/culturegraph/mf/stream/source Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 21
21
import java .io .InputStreamReader ;
22
22
import java .io .Reader ;
23
23
24
+ import org .apache .commons .io .input .BOMInputStream ;
24
25
import org .culturegraph .mf .exceptions .MetafactureException ;
25
26
import org .culturegraph .mf .framework .DefaultObjectPipe ;
26
27
import org .culturegraph .mf .framework .ObjectReceiver ;
@@ -82,7 +83,8 @@ public void process(final String file) {
82
83
try {
83
84
final InputStream decompressor = compression .createDecompressor (fileStream );
84
85
try {
85
- final Reader reader = new InputStreamReader (decompressor , encoding );
86
+
87
+ final Reader reader = new InputStreamReader (new BOMInputStream (decompressor ), encoding );
86
88
getReceiver ().process (reader );
87
89
} catch (IOException e ) {
88
90
decompressor .close ();
You can’t perform that action at this time.
0 commit comments