/** * Check size. * * @param value the value * @param limitSize the limit size * @return the string */ public static String checkSize(byte[] value, int limitSize) { if (value != null) { if (value.length > limitSize) { return bytesToHex(value, limitSize-3) + "..."; } else return bytesToHex(value, value.length); } else return null; }
/** * Check size. * * @param value the value * @param limitSize the limit size * @return the string */ public static String checkSize(byte[] value, int limitSize) { if (value != null) { if (value.length > limitSize) { return bytesToHex(value, limitSize-3) + "..."; } else return bytesToHex(value, value.length); } else return null; }