public class StreamUtils extends Object
| Constructor and Description |
|---|
StreamUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
convertAttachment(io.netty.handler.codec.http2.DefaultHttp2Headers headers,
Map<String,Object> attachments)
Parse and put the KV pairs into metadata.
|
static byte[] |
decodeASCIIByte(CharSequence value) |
static byte[] |
encodeBase64(byte[] in) |
static String |
encodeBase64ASCII(byte[] in) |
static Map<String,Object> |
toAttachments(Map<String,Object> origin) |
public static String encodeBase64ASCII(byte[] in)
public static byte[] encodeBase64(byte[] in)
public static byte[] decodeASCIIByte(CharSequence value)
public static void convertAttachment(io.netty.handler.codec.http2.DefaultHttp2Headers headers,
Map<String,Object> attachments)
headers - the metadata holderattachments - KV pairsCopyright © 2011–2022 The Apache Software Foundation. All rights reserved.