com.itextpdf.styledxmlparser.jsoup.PortUtil Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of styled-xml-parser Show documentation
Show all versions of styled-xml-parser Show documentation
Styled XML parser is used by iText7 modules to parse HTML and XML
The newest version!
/*
This file is part of jsoup, see NOTICE.txt in the root of the repository.
It may contain modifications beyond the original version.
*/
package com.itextpdf.styledxmlparser.jsoup;
import java.nio.charset.Charset;
public class PortUtil {
public static boolean charsetIsSupported(String charsetName) {
try {
return Charset.isSupported(charsetName);
} catch (IllegalArgumentException e) {
return false;
}
}
public static String trimControlCodes(String str) {
// In java trim method removes control codes by default.
return str.trim();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy