public final class EncodingUtils extends Object
This class is not intended to be instantiated or extended by clients.
| Constructor and Description |
|---|
EncodingUtils() |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
decodeBase64(String string)
Provides decoding of Base64-encoded string
|
static String |
decodeSlashes(String nodeName)
Decode strings previously encoded with the
encodeSlashes(String) method. |
static String |
encodeBase64(byte[] bytes)
Provides Base64 encoding of the data.
|
static String |
encodeSlashes(String nodeName)
Encode strings containing forward slashes so that they can be used as node names
with secure preferences.
|
public static String encodeSlashes(String nodeName)
Internally, the class uses a subset of JIT encoding. The forward slashes and backward slashes are encoded.
nodeName - string to be encodednull if argument was nulldecodeSlashes(String)public static String decodeSlashes(String nodeName)
encodeSlashes(String) method.nodeName - string to be decodednull if argument was nullpublic static String encodeBase64(byte[] bytes)
bytes - data to be encodedpublic static byte[] decodeBase64(String string)
string - data encoded as Base64
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.