|
|||||||||
| Home >> All >> org >> znerd >> [ xmlenc overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.znerd.xmlenc
Class LineBreak

java.lang.Objectorg.znerd.xmlenc.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 $
| Field Summary | |
private java.lang.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(java.lang.String lineBreak)
Constructs a new LineBreak that consists of the specified
characters. |
| Method Summary | |
java.lang.String |
toString()
Convert this Object to a human-readable String. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
_lineBreak
private final java.lang.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
UNIX55 as the MacOS/X line break.
| Constructor Detail |
LineBreak
private LineBreak(java.lang.String lineBreak)
- Constructs a new
LineBreakthat consists of the specified characters.
| Method Detail |
toString
public java.lang.String toString()
- Description copied from class:
java.lang.Object - Convert this Object to a human-readable String.
There are no limits placed on how long this String
should be or what it should contain. We suggest you
make it as intuitive as possible to be able to place
it into System.out.println() 55
and such.
It is typical, but not required, to ensure that this method never completes abruptly with a java.lang.RuntimeException.
This method will be called when performing string concatenation with this object. If the result is
null, string concatenation will instead use"null".The default implementation returns
getClass().getName() + "@" + Integer.toHexString(hashCode()).
|
|||||||||
| Home >> All >> org >> znerd >> [ xmlenc overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
org.znerd.xmlenc.LineBreak