java.lang.Object
org.gjt.sp.jedit.io.XMLEncodingDetector
- All Implemented Interfaces:
EncodingDetector
An encoding detector which extracts encoding from XML declaration.
- Since:
- 4.3pre10
- Author:
- Kazutoshi Satoda
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondetectEncoding
(InputStream sample) Returns the name of a detected encoding for the bytes in sample.
-
Constructor Details
-
XMLEncodingDetector
public XMLEncodingDetector()
-
-
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
-