Class StaticLengthLimitedStringBuilder

    • Constructor Detail

      • StaticLengthLimitedStringBuilder

        public StaticLengthLimitedStringBuilder​(int maxLength)
        Constructs a string builder with the specified maximum length.

        The string builder will silently stop appending strings when the limit is reached.

        Instances of this class are not safe for use by multiple threads.

        Parameters:
        maxLength - Maximum length.