Enum SplitTextMode



  • public enum SplitTextMode
    extends java.lang.Enum<SplitTextMode>
    The SplitTextMode specifies for according algorithms on how a line is to be split apart.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      AT_END_OF_LINE
      A line is to be split at an end of a line, best as it gets, identified by the CharSet.END_OF_LINE characters.
      AT_FIRST_END_OF_LINE
      A line is to be split at the first end of a line detected, identified by the CharSet.END_OF_LINE characters.
      AT_FIXED_WIDTH
      A line is to be split exactly at the given width not reckoning the end of lines or spaces.
      AT_SPACE
      A line is to be split at space characters, best as it gets, identified by the space " " character.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static SplitTextMode valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static SplitTextMode[] values​()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • AT_END_OF_LINE

        public static final SplitTextMode AT_END_OF_LINE
        A line is to be split at an end of a line, best as it gets, identified by the CharSet.END_OF_LINE characters.
      • AT_FIRST_END_OF_LINE

        public static final SplitTextMode AT_FIRST_END_OF_LINE
        A line is to be split at the first end of a line detected, identified by the CharSet.END_OF_LINE characters.
      • AT_SPACE

        public static final SplitTextMode AT_SPACE
        A line is to be split at space characters, best as it gets, identified by the space " " character.
      • AT_FIXED_WIDTH

        public static final SplitTextMode AT_FIXED_WIDTH
        A line is to be split exactly at the given width not reckoning the end of lines or spaces.
    • Method Detail

      • values

        public static SplitTextMode[] values​()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (SplitTextMode c : SplitTextMode.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static SplitTextMode valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null