Class DefaultEscapeHandler
- java.lang.Object
-
- com.prowidesoftware.swift.model.mx.DefaultEscapeHandler
-
- All Implemented Interfaces:
EscapeHandler
public class DefaultEscapeHandler extends java.lang.Object implements EscapeHandler
Escapes &, <, >, quotes (in attribute) and everything above the US-ASCII code range. Similar to com.sun.xml.bind.marshaller.DumbEscapeHandler or apache.commons.text.StringEscapeUtils#escapeXml- Since:
- 9.1.7
-
-
Constructor Summary
Constructors Constructor Description DefaultEscapeHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
escape(char[] arr, boolean isAttribute)
-
-
-
Method Detail
-
escape
public java.lang.String escape(char[] arr, boolean isAttribute)
- Specified by:
escape
in interfaceEscapeHandler
- Parameters:
arr
- the characters to escapeisAttribute
- true if it is an attribute value
-
-