Class ByteUtils

java.lang.Object
pro.verron.officestamper.utils.ByteUtils

public class ByteUtils extends Object
Utility class providing common operations for byte manipulation and conversions. This class is not intended to be instantiated.
  • Method Details

    • sha1b64

      public static String sha1b64(byte[] bytes)
    • readableSize

      public static String readableSize(byte[] imageBytes)
      Converts the size of a byte array into a human-readable string representation using standard size prefixes (e.g., KB, MB, GB).
      Parameters:
      imageBytes - the input byte array whose size needs to be converted
      Returns:
      a human-readable string representing the size of the byte array in appropriate units (e.g., "1.2KB", "3.4MB")