java.lang.Object
io.inverno.mod.base.Charsets
Utility methods and constants for charsets.
- Since:
- 1.0
- Author:
- Jeremy Kuhn
-
Field Summary
-
Method Summary
-
Field Details
-
ISO_8859_1
ISO-8859-1 charset constant -
UTF_8
UTF-8 charset constant -
DEFAULT
Default charset
-
-
Method Details
-
orDefault
Returns the specified charset if not null or the default charset.
- Parameters:
charset
- a charset- Returns:
- the specified charset or the default charset
-
or
Returns the specified charset if not null or the other charset which must not be null.
- Parameters:
charset
- a charsetother
- another charset- Returns:
- the specified charset or the other charset
- Throws:
NullPointerException
- if the other charset is null
-