Interface JSONObfuscator.LimitConfigurer

All Superinterfaces:
JSONObfuscator.Builder
Enclosing class:
JSONObfuscator

public static interface JSONObfuscator.LimitConfigurer extends JSONObfuscator.Builder
An object that can be used to configure handling when the obfuscated result exceeds a pre-defined limit.
Author:
Rob Spoor
Since:
1.1
  • Method Details

    • withTruncatedIndicator

      JSONObfuscator.LimitConfigurer withTruncatedIndicator(String pattern)
      Sets the indicator to use when the obfuscated result is truncated due to the limit being exceeded. There can be one place holder for the total number of characters. Defaults to ... (total: %d). Use null to omit the indicator.
      Parameters:
      pattern - The pattern to use as indicator.
      Returns:
      This object.