Package step.grid.io
Class AttachmentHelper
- java.lang.Object
-
- step.grid.io.AttachmentHelper
-
public class AttachmentHelper extends Object
-
-
Constructor Summary
Constructors Constructor Description AttachmentHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Attachment
generateAttachmentForException(Throwable e)
static Attachment
generateAttachmentFromByteArray(byte[] bytes, String attachmentName)
static String
getHex(byte[] raw)
static byte[]
hexStringToByteArray(String s)
-
-
-
Method Detail
-
getHex
public static String getHex(byte[] raw)
-
hexStringToByteArray
public static byte[] hexStringToByteArray(String s)
-
generateAttachmentForException
public static Attachment generateAttachmentForException(Throwable e)
-
generateAttachmentFromByteArray
public static Attachment generateAttachmentFromByteArray(byte[] bytes, String attachmentName)
-
-