public class Entities extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Entities.EscapeMode |
Modifier and Type | Method and Description |
---|---|
static int |
codepointsForName(String name,
int[] codepoints) |
static String |
getByName(String name)
Get the character(s) represented by the named entity
|
static Character |
getCharacterByName(String name)
Deprecated.
does not support characters outside the BMP or multiple character names
|
static boolean |
isBaseNamedEntity(String name)
Check if the input is a known named entity in the base entity set.
|
static boolean |
isNamedEntity(String name)
Check if the input is a known named entity
|
public static boolean isNamedEntity(String name)
name
- the possible entity name (e.g. "lt" or "amp")public static boolean isBaseNamedEntity(String name)
name
- the possible entity name (e.g. "lt" or "amp")isNamedEntity(String)
public static Character getCharacterByName(String name)
name
- named entity (e.g. "lt" or "amp")public static String getByName(String name)
name
- entity (e.g. "lt" or "amp")public static int codepointsForName(String name, int[] codepoints)
Copyright © 2017. All rights reserved.