java.lang.Object
org.gjt.sp.jedit.io.EncodingWithBOM.Detector
- All Implemented Interfaces:
EncodingDetector
- Enclosing class:
- EncodingWithBOM
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondetectEncoding
(InputStream sample) Returns the name of a detected encoding for the bytes in sample.
-
Constructor Details
-
Detector
public Detector()
-
-
Method Details
-
detectEncoding
Description copied from interface:EncodingDetector
Returns the name of a detected encoding for the bytes in sample. Returns null if this instance could not detect reasonable one.- Specified by:
detectEncoding
in interfaceEncodingDetector
- Throws:
IOException
-