Package echo.output

Class NewlineFormatter


  • public class NewlineFormatter
    extends java.lang.Object
    Formats end of line characters according to desired format
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String lineSeparator  
      private static java.lang.String NEWLINES_REG_EX  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String format​(java.lang.String output)
      Format the message with the desired end of line characters
      • Methods inherited from class java.lang.Object

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

      • lineSeparator

        private final java.lang.String lineSeparator
    • Constructor Detail

      • NewlineFormatter

        public NewlineFormatter​(PluginParameters pluginParameters)
        Creates a new instance of NewlineSeparator
        Parameters:
        pluginParameters - The user-supplied plugin parameters
    • Method Detail

      • format

        public java.lang.String format​(java.lang.String output)
        Format the message with the desired end of line characters