Class ByteUtilities

java.lang.Object
com.cedarsoftware.util.ByteUtilities

public final class ByteUtilities extends Object
  • Method Details

    • decode

      public static byte[] decode(String s)
    • encode

      public static String encode(byte[] bytes)
      Convert a byte array into a printable format containing a String of hex digit characters (two per byte).
      Parameters:
      bytes - array representation
      Returns:
      String hex digits
    • isGzipped

      public static boolean isGzipped(byte[] bytes)
      Parameters:
      bytes - byte[] of bytes to test
      Returns:
      true if bytes are gzip compressed, false otherwise.