public final class ByteArrayEscapeUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static byte |
DELIMITER |
static byte |
DELIMITER_PLUS_ONE |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
escape(byte[] bytes)
Escapes the provided string so that it no longer contains the
Constants.DELIMITER character.
|
static byte[] |
unEscape(byte[] bytes)
Unescapes the provided byte array - this should only be called on byte
arrays that have been through the
escape method. |
public static final byte DELIMITER
public static final byte DELIMITER_PLUS_ONE
public static byte[] escape(byte[] bytes)
bytes - the byte array to escapepublic static byte[] unEscape(byte[] bytes)
escape method.bytes - the byte array to unescapeCopyright © 2017. All rights reserved.