org.znerd.xmlenc
Class LineBreak

java.lang.Object
  extended byorg.znerd.xmlenc.LineBreak

public final class LineBreak
extends 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)

Field Summary
private  String _lineBreak
          The characters this line break consists of.
(package private)  char[] _lineBreakChars
          A character array containing the characters this line break consists of.
static LineBreak DOS
          DOS and Windows line break.
static LineBreak MACOS
          MacOS line break.
static LineBreak NONE
          Empty line break.
static LineBreak UNIX
          Unix and MacOS/X line break.
 
Constructor Summary
private LineBreak(String lineBreak)
          Constructs a new LineBreak that consists of the specified characters.
 
Method Summary
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_lineBreak

private final String _lineBreak
The characters this line break consists of. This field is initialized by the constructor.


_lineBreakChars

final char[] _lineBreakChars
A character array containing the characters this line break consists of. This field is initialized by the constructor.


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.

Constructor Detail

LineBreak

private LineBreak(String lineBreak)
Constructs a new LineBreak that consists of the specified characters.

Parameters:
lineBreak - the characters the line break consists of.
Method Detail

toString

public String toString()


See http://xmlenc.sourceforge.net/.
This Javadoc API documentation set contains private and package private members as well.