Class BOMDetector
- java.lang.Object
-
- org.pentaho.di.trans.steps.fileinput.text.BOMDetector
-
public class BOMDetector extends Object
Detector of BOM prefix in file. We don't use BOMInputStream because: 1) it requires commons-io 2.1 or higher, 2) it doesn't support GB18030 charset, 3) it's additional abstraction level that add some microseconds to read
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BOMDetector.BOMMark
-
Field Summary
Fields Modifier and Type Field Description static BOMDetector.BOMMark[]
MARKS
-
Constructor Summary
Constructors Constructor Description BOMDetector(BufferedInputStream in)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
bomExist()
int
getBomSize()
String
getCharset()
-
-
-
Field Detail
-
MARKS
public static final BOMDetector.BOMMark[] MARKS
-
-
Constructor Detail
-
BOMDetector
public BOMDetector(BufferedInputStream in) throws IOException
- Throws:
IOException
-
-
Method Detail
-
bomExist
public boolean bomExist()
-
getCharset
public String getCharset()
-
getBomSize
public int getBomSize()
-
-