Class LineBreak


  • public final class LineBreak
    extends java.lang.Object
    Enumeration type for line breaks.
    Since:
    xmlenc 0.35
    Version:
    $Revision: 1.3 $ $Date: 2005/09/12 08:40:02 $
    Author:
    Jochen Schwoerer (j.schwoerer [at] web.de), Ernst de Haan (wfe.dehaan@gmail.com)
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

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

      • NONE

        public static final LineBreak NONE
        Empty line break. This is equivalent to using no line breaks.
      • UNIX

        public static final LineBreak UNIX
        Unix and MacOS/X line break. This represents the string "\n".
      • DOS

        public static final LineBreak DOS
        DOS and Windows line break. This represents the string "\r\n".
      • MACOS

        public static final LineBreak MACOS
        MacOS line break. This represents the string "\r".

        This applies to all MacOS versions before MacOS/X. Use UNIX as the MacOS/X line break.

    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object