public class BinaryUtils
extends java.lang.Object
| Constructor and Description |
|---|
BinaryUtils() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isBinary(scala.collection.Seq<akka.util.ByteString> byteStrings)
Identifies if the sequence of ByteString can be treated as binary
|
static boolean |
isNotText(byte[] bytes)
Identifies if the byte array can be treated as text or not by checking if binary content is more than 15% i.e.
|
public static boolean isBinary(scala.collection.Seq<akka.util.ByteString> byteStrings)
byteStrings - a sequence of ByteString to be tested for binary contentpublic static boolean isNotText(byte[] bytes)
bytes - a connection to resolve to with its registered location