public class BinaryFileTransfer
extends java.lang.Object
Constructor and Description |
---|
BinaryFileTransfer() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
convertByteArrToString(byte[] byteArr)
Array of bytes to brute-force convert into a hexadecimal string.
|
static byte[] |
convertStringToByteArr(java.lang.String s)
Hexadecimal string to brute-force convert into an array of bytes.
|
static void |
writeBinaryFile(java.lang.String fileName,
byte[] byteArr) |
public static byte[] convertStringToByteArr(java.lang.String s)
s
- Hexadecimal stringpublic static void writeBinaryFile(java.lang.String fileName, byte[] byteArr) throws java.io.IOException
java.io.IOException
public static java.lang.String convertByteArrToString(byte[] byteArr)
byteArr
- byte array to convert