java.lang.Object | |
↳ | com.atlassian.jira.imports.project.util.XMLEscapeUtil |
Replaces all characters that are illegal in XML with a escape sequence '☃[0-9][0-9][0-9][0-9]'. Additionally ☃ character is also escaped to ensure that decoding encoded text will ne the same.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
char | ESCAPING_CHAR |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Substitutes all occurrences of '☃[0-9][0-9][0-9][0-9]' with their corresponding character codes.
| |||||||||||
Replaces all characters that are illegal in XML with a Java-like unicode escape sequence
'☃[0-9][0-9][0-9][0-9]'.
| |||||||||||
Escaping characters in place in given buffer.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class java.lang.Object |
Substitutes all occurrences of '☃[0-9][0-9][0-9][0-9]' with their corresponding character codes. When
null
is passed into this method, null
is returned.
Replaces all characters that are illegal in XML with a Java-like unicode escape sequence
'☃[0-9][0-9][0-9][0-9]'. When null
is passed into this method, null
is returned.
Escaping characters in place in given buffer. Because escaped character is encoded with more than one character it is quite possible that it won't fit in buffer. Additional characters in escaped form if needed will be added to overflow queue. Buffer is analyzed from offset for len characters. Buffer may be longer but not filled - maxLen is maximum buffer length that can be used.
cbuf | buffer with data - it will be overwritten with escaped data |
---|---|
off | offset of characters in buffer to be analyzed and escaped if needed |
len | number of characters to be analyzed |
maxLen | maximum number of characters that can be put into buffer (counting from offset) |
overflow | should be empty when called, used to return overflow data |