Package io.jenkins.plugins.util
Class CharsetValidation
java.lang.Object
io.jenkins.plugins.util.CharsetValidation
Validates the charset configuration.
- Author:
- Ullrich Hafner
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns all available character set names.getCharset(String charset) Returns the default charset for the specified encoding string.validateCharset(String reportEncoding) Performs on-the-fly validation of the character encoding.
-
Constructor Details
-
CharsetValidation
public CharsetValidation()
-
-
Method Details
-
getAllCharsets
Returns all available character set names.- Returns:
- all available character set names
-
getCharset
Returns the default charset for the specified encoding string. If the default encoding is empty ornull, or if the charset is not valid then the default encoding of the platform is returned.- Parameters:
charset- identifier of the character set- Returns:
- the default charset for the specified encoding string
-
validateCharset
Performs on-the-fly validation of the character encoding.- Parameters:
reportEncoding- the character encoding- Returns:
- the validation result
-