Class WordWrapper


  • @Service
    public class WordWrapper
    extends java.lang.Object
    Utility class for word wrapping after at max a number of characters. This is a base implementation that will be replaced with a more sophisticated PropertyLoader. See also ticket #36.
    Author:
    Andi Hotz, (c) Sahits GmbH, 2013 Created on Feb 4, 2013
    • Constructor Summary

      Constructors 
      Constructor Description
      WordWrapper()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String[] splitUpIntoLines​(java.lang.String s, int maxCharacters)
      Split up a string into different lines so no line is longer than maxCharacters.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • WordWrapper

        public WordWrapper()
    • Method Detail

      • splitUpIntoLines

        public java.lang.String[] splitUpIntoLines​(java.lang.String s,
                                                   int maxCharacters)
        Split up a string into different lines so no line is longer than maxCharacters.
        Parameters:
        s - String to be split
        maxCharacters - number of characters
        Returns:
        different lines