Schnittstelle IconEncoder<ICON extends Icon<ICON,?>>
- Typparameter:
ICON- The icon class this encoder can handle.
- Alle bekannten Implementierungsklassen:
CompositeIconEncoder
String representations for icons. These strings will get parsed by the corresponding
IconDecoder.
A String representation may be an arbitrary String, as long as it is an allowed String for URL path segments.
It should be safe to use a-z A-Z 0-9 . - _ ~ ! $ ' ( ) * + , ; = : @.
If the String contains parenthesis ("(" or ")"), it must make sure to close any opening one of them.
Implementations MUST be able to encode unstyled icons, i.e. icons that have no style set (null).
Implementations MUST provide a default constructor!
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungencodeIcon(ICON icon, IconEncoderContext context) Creates a string representation of the provided icon.
-
Methodendetails
-
encodeIcon
Creates a string representation of the provided icon.The string representation may be an arbitrary string, as long as it is an allowed string for URL path segments. It should be safe to use
a-z A-Z 0-9 . - _ ~ ! $ ' ( ) * + , ; = : @. If the String contains parenthesis ("(" or ")"), it must make sure to close any opening one of them.Note that this method MUST support encoding unstyled icons, i.e. icons that have no style set (null).
- Parameter:
icon- The icon to encode.context-- Gibt zurück:
- The encoded icon
-