Class TextFile

java.lang.Object
io.sf.jclf.text.TextFile

public class TextFile extends Object
Convenience class for system text utility functions, like unix-dos line break conversions.
  • Constructor Details

    • TextFile

      public TextFile()
  • Method Details

    • toDosString

      public static String toDosString(String text)
      Transforms a string formatted with Unix-style line breaks (CRLF) to DOS line breaks (LF).
      Parameters:
      text - text with Unix-style line breaks.
      Returns:
      text with DOS-style line breaks.
    • toUnixString

      public static String toUnixString(String text)
      Transforms a string formatted with DOS-style line breaks (CRLF) to Unix line breaks (LF).
      Parameters:
      text - text with DOS-style line breaks.
      Returns:
      text with Unix-style line breaks.