@Immutable public class Jsr283Encoder extends Object implements TextEncoder, TextDecoder
| Non-JCR character (Unicode code point) |
Private use Unicode code point |
|---|---|
| (U+002A) | U+F02A |
| / (U+002F) | U+F02F |
| : (U+003A) | U+F03A |
| [ (U+005B) | U+F05B |
| ] (U+005D) | U+F05D |
| | (U+007C) | U+F07C |
| Constructor and Description |
|---|
Jsr283Encoder() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
containsEncodeableCharacters(String str) |
String |
decode(String jcrNodeName)
Return the decoded version of an encoded string
|
String |
encode(String publicName)
Returns the encoded version of a string.
|
public static boolean containsEncodeableCharacters(String str)
public String encode(String publicName)
TextEncoderencode in interface TextEncoderpublicName - the text with characters that are to be encoded.TextDecoder.decode(String)public String decode(String jcrNodeName)
TextDecoderdecode in interface TextDecoderjcrNodeName - the encoded textTextEncoder.encode(String)Copyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.