Class ByteArrayUtils
- java.lang.Object
-
- org.apache.flink.table.runtime.arrow.ByteArrayUtils
-
@Internal public class ByteArrayUtils extends Object
A utility class for converting byte[][] to String and String to byte[][].
-
-
Constructor Summary
Constructors Constructor Description ByteArrayUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static byte[][]
stringToTwoDimByteArray(String str)
Convert String to byte[][].static String
twoDimByteArrayToString(byte[][] byteArray)
Convert byte[][] to String.
-
-
-
Method Detail
-
twoDimByteArrayToString
public static String twoDimByteArrayToString(byte[][] byteArray) throws IOException
Convert byte[][] to String.- Throws:
IOException
-
stringToTwoDimByteArray
public static byte[][] stringToTwoDimByteArray(String str) throws IOException, ClassNotFoundException
Convert String to byte[][].- Throws:
IOException
ClassNotFoundException
-
-