|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.dna.common.text.Jsr283Encoder
public class Jsr283Encoder
Encoder that escapes characters that are not allowed in JCR names. The mapping defined in Section 3.6.3 of the JSR-283 public review document:
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 Summary | |
---|---|
Jsr283Encoder()
|
Method Summary | |
---|---|
java.lang.String |
decode(java.lang.String jcrNodeName)
Return the decoded version of an encoded string |
java.lang.String |
encode(java.lang.String publicName)
Returns the encoded version of a string. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Jsr283Encoder()
Method Detail |
---|
public java.lang.String encode(java.lang.String publicName)
encode
in interface TextEncoder
publicName
- the text with characters that are to be encoded.
TextEncoder.decode(String)
public java.lang.String decode(java.lang.String jcrNodeName)
decode
in interface TextEncoder
jcrNodeName
- the encoded text
TextEncoder.encode(String)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |