Package io.micronaut.serde.util
Class BinaryCodecUtil
java.lang.Object
io.micronaut.serde.util.BinaryCodecUtil
Common implementations for reading/writing byte arrays.
- Since:
- 2.1
- Author:
- Jonas Konrad
-
Method Summary
Modifier and TypeMethodDescriptionstatic byte[]
decodeFromArray
(Decoder base) static byte[]
static void
encodeToArray
(Encoder encoder, byte[] data) static void
encodeToBase64String
(Encoder encoder, byte[] data)
-
Method Details
-
decodeFromArray
- Throws:
IOException
-
decodeFromBase64String
- Throws:
IOException
-
encodeToArray
- Throws:
IOException
-
encodeToBase64String
- Throws:
IOException
-