Package org.snakeyaml.engine.v2.common
Class CharConstants
- java.lang.Object
-
- org.snakeyaml.engine.v2.common.CharConstants
-
public final class CharConstants extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static CharConstantsALPHAstatic Map<Character,Integer>ESCAPE_CODESA mapping from a character to a number of bytes to read-ahead for that escape sequence.static Map<Character,String>ESCAPE_REPLACEMENTSA mapping from an escaped character in the input stream to the character that they should be replaced with.static CharConstantsLINEBRstatic CharConstantsNULL_BL_LINEBRstatic CharConstantsNULL_BL_Tstatic CharConstantsNULL_BL_T_LINEBRstatic CharConstantsNULL_OR_LINEBRstatic CharConstantsURI_CHARS_FOR_TAG_PREFIXstatic CharConstantsURI_CHARS_FOR_TAG_SUFFIX
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StringescapeChar(String chRepresentation)Replace a single character with its string representationbooleanhas(int c)booleanhas(int c, String additional)booleanhasNo(int c)booleanhasNo(int c, String additional)
-
-
-
Field Detail
-
LINEBR
public static final CharConstants LINEBR
-
NULL_OR_LINEBR
public static final CharConstants NULL_OR_LINEBR
-
NULL_BL_LINEBR
public static final CharConstants NULL_BL_LINEBR
-
NULL_BL_T_LINEBR
public static final CharConstants NULL_BL_T_LINEBR
-
NULL_BL_T
public static final CharConstants NULL_BL_T
-
URI_CHARS_FOR_TAG_PREFIX
public static final CharConstants URI_CHARS_FOR_TAG_PREFIX
-
URI_CHARS_FOR_TAG_SUFFIX
public static final CharConstants URI_CHARS_FOR_TAG_SUFFIX
-
ALPHA
public static final CharConstants ALPHA
-
ESCAPE_REPLACEMENTS
public static final Map<Character,String> ESCAPE_REPLACEMENTS
A mapping from an escaped character in the input stream to the character that they should be replaced with.YAML defines several common and a few uncommon escape sequences.
-
ESCAPE_CODES
public static final Map<Character,Integer> ESCAPE_CODES
A mapping from a character to a number of bytes to read-ahead for that escape sequence. These escape sequences are used to handle unicode escaping in the following formats, where H is a hexadecimal character:\xHH : escaped 8-bit Unicode character \uHHHH : escaped 16-bit Unicode character \UHHHHHHHH : escaped 32-bit Unicode character
-
-