Top Description Constructors Methods
io.vertx.docgen

public final Class EntityUtils

extends Object
Class Inheritance

An utility class to handle entities.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
private static String
parseAsDecimal(String input, String withoutPrefix)

private static String
parseAsHexa(String input, String withoutPrefix)

public static String

Returns:

the represented character
unescapeEntity
(String
the entity
input
)

Computes the character represented by the given entity.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

EntityUtilsback to summary
private EntityUtils()

Method Detail

parseAsDecimalback to summary
private static String parseAsDecimal(String input, String withoutPrefix)
parseAsHexaback to summary
private static String parseAsHexa(String input, String withoutPrefix)
unescapeEntityback to summary
public static String unescapeEntity(String input)

Computes the character represented by the given entity. The entity can be given as #xx or as uXXXX. Other form are wrapped into `&` and `;`. This wrapping is allowed as Asciidoctor supports HTML entities, so we don't have to maintain a translation table.

Parameters
input:String

the entity

Returns:String

the represented character