org.apache.flink.shaded.jackson2.com.fasterxml.jackson.core.io.SerializedString Java Examples

The following examples show how to use org.apache.flink.shaded.jackson2.com.fasterxml.jackson.core.io.SerializedString. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: RestAPIDocGenerator.java    From Flink-CEPplus with Apache License 2.0 5 votes vote down vote up
public HTMLCharacterEscapes() {
	int[] esc = CharacterEscapes.standardAsciiEscapesForJSON();
	esc['<'] = CharacterEscapes.ESCAPE_CUSTOM;
	esc['>'] = CharacterEscapes.ESCAPE_CUSTOM;
	esc['&'] = CharacterEscapes.ESCAPE_CUSTOM;
	Map<Integer, SerializableString> escMap = new HashMap<>();
	escMap.put((int) '<', new SerializedString("&lt;"));
	escMap.put((int) '>', new SerializedString("&gt;"));
	escMap.put((int) '&', new SerializedString("&amp;"));
	asciiEscapes = esc;
	escapeSequences = escMap;
}
 
Example #2
Source File: RestAPIDocGenerator.java    From flink with Apache License 2.0 5 votes vote down vote up
public HTMLCharacterEscapes() {
	int[] esc = CharacterEscapes.standardAsciiEscapesForJSON();
	esc['<'] = CharacterEscapes.ESCAPE_CUSTOM;
	esc['>'] = CharacterEscapes.ESCAPE_CUSTOM;
	esc['&'] = CharacterEscapes.ESCAPE_CUSTOM;
	Map<Integer, SerializableString> escMap = new HashMap<>();
	escMap.put((int) '<', new SerializedString("&lt;"));
	escMap.put((int) '>', new SerializedString("&gt;"));
	escMap.put((int) '&', new SerializedString("&amp;"));
	asciiEscapes = esc;
	escapeSequences = escMap;
}
 
Example #3
Source File: RestAPIDocGenerator.java    From flink with Apache License 2.0 5 votes vote down vote up
public HTMLCharacterEscapes() {
	int[] esc = CharacterEscapes.standardAsciiEscapesForJSON();
	esc['<'] = CharacterEscapes.ESCAPE_CUSTOM;
	esc['>'] = CharacterEscapes.ESCAPE_CUSTOM;
	esc['&'] = CharacterEscapes.ESCAPE_CUSTOM;
	Map<Integer, SerializableString> escMap = new HashMap<>();
	escMap.put((int) '<', new SerializedString("&lt;"));
	escMap.put((int) '>', new SerializedString("&gt;"));
	escMap.put((int) '&', new SerializedString("&amp;"));
	asciiEscapes = esc;
	escapeSequences = escMap;
}