|
Oracle Business Rules Java API Reference 10g (10.1.3.1.0) B28966-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.rules.sdk.store.util.HexCodec
Utility methods for a simple encoding of non-ascii Unicode. Intended for encoding/decoding DocumentID components if the underlying store requires it.
Constructor Summary | |
HexCodec() |
Method Summary | |
static java.lang.String |
decode(java.lang.String s) Returns the decoded hex string. |
static java.lang.String |
decodeIfNeeded(java.lang.String s) If the first two characters of the specified string are "__", it is assumed to have been hex encoded by encodeIfNeeded . |
static java.lang.String |
encode(java.lang.String s) Returns the hex encoding of the specified string. |
static java.lang.String |
encodeIfNeeded(java.lang.String s) If the specified string contains any non-ascii Unicode characters, then a hex encoding of the string prepended with "__" is returned. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public HexCodec()
Method Detail |
public static java.lang.String encode(java.lang.String s)
s
- the string to encode.public static java.lang.String decode(java.lang.String s)
s
- the string to decode.public static java.lang.String encodeIfNeeded(java.lang.String s)
s
- the string to encode if needed.decodeIfNeeded(java.lang.String)
public static java.lang.String decodeIfNeeded(java.lang.String s)
encodeIfNeeded
. The leading "__" is stripped and the decoded remaining string is returned. Otherwise the specified string is returned.s
- the string to decode.encodeIfNeeded(java.lang.String)
|
Oracle Business Rules Java API Reference 10g (10.1.3.1.0) B28966-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |