public class PostBindingUtil extends Object
| Constructor and Description |
|---|
PostBindingUtil() |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
base64Decode(String encodedString)
Apply base64 decoding on the message and return the byte array
|
static InputStream |
base64DecodeAsStream(String encodedString)
Apply base64 decoding on the message and return the stream
|
static String |
base64Encode(String stringToEncode)
Apply base64 encoding on the message
|
static String |
escapeHTML(String toEscape) |
public static String base64Encode(String stringToEncode) throws IOException
stringToEncode - IOExceptionpublic static byte[] base64Decode(String encodedString)
encodedString - public static InputStream base64DecodeAsStream(String encodedString)
encodedString - Copyright © 2016 JBoss by Red Hat. All rights reserved.