Class TextSplitter

java.lang.Object
de.cuioss.tools.string.TextSplitter
All Implemented Interfaces:
Serializable

public class TextSplitter extends Object implements Serializable
This class provide functionality to transform long text to several html useful representation and encapsulate this as an object. It is implemented as an value-object keeping the calculated text.
Author:
Eugen Fischer
See Also:
  • Constructor Details

    • TextSplitter

      public TextSplitter(String longString)
      Construct TextSplitter.
      Parameters:
      longString - source text which will be processed
    • TextSplitter

      public TextSplitter(String source, int forceLengthBreakCount, int abridgedLengthCount)
      Alternative Constructor
      Parameters:
      source - target text
      forceLengthBreakCount - count of characters when a text break will forced
      abridgedLengthCount - count of characters