Class SnippetGenerator


  • public class SnippetGenerator
    extends Object
    Truncate text to a snippet suitable for logging.
    Author:
    hakon
    • Constructor Detail

      • SnippetGenerator

        public SnippetGenerator()
    • Method Detail

      • makeSnippet

        public String makeSnippet​(String text,
                                  int sizeHint)
        Returns a snippet of approximate size.