/src/main/java/org/apache/maven/doxia/DefaultConverter.java
CharsetMatch match = detector.detect( ) ;CharsetDetector detector = new CharsetDetector( ) ;
CharsetDetector detector = new CharsetDetector ( ) ;
if (XmlUtil.isXml(f)) { try (XmlStreamReader reader = new XmlStreamReader(f)) { return reader.getEncoding(); } } try (InputStream is = new BufferedInputStream(new FileInputStream(f))) { <extra_id_0> detector.setText(is); CharsetMatch match = detector.detect(); return match.getName().toUpperCase(Locale.ENGLISH); } } catch (IOException e) { }