com.starteam.util
Class Platform.EOL

java.lang.Object
  extended by com.starteam.util.Platform.EOL
Enclosing class:
Platform

public static final class Platform.EOL
extends java.lang.Object

The end-of-line sequence on different platforms


Field Summary
static Platform.EOL[] ALL
          All legal EOL format values.
static Platform.EOL CR
          Carriage-return end-of-line sequence (i.e., "\r").
static Platform.EOL CRLF
          Carriage-return + Line-feed end-of-line sequence (i.e., "\r\n").
static Platform.EOL LF
          Line-feed end-of-line sequence (i.e., "\n").
static Platform.EOL MAC
          End of line sequence commonly used on the MacIntosh.
static Platform.EOL UNIX
          End of line sequence commonly used on Unix/Linux/Solaris.
static Platform.EOL UNKNOWN
          The end-of-line sequence has not been determined.
static Platform.EOL WINDOWS
          End of line sequence commonly used on Windows.
 
Method Summary
static Platform.EOL fromEOL(java.lang.String eol)
          Determines the EOL whose end-of-line character sequence matches the given one.
static Platform.EOL fromID(int id)
          Gets the end-of-line sequence value corresponding to the given ID.
 java.lang.String getEOL()
          Gets the actual end-of-line character sequence for this EOLFormat.
 int getID()
          The ID of the corresponding end of line sequence.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UNKNOWN

public static final Platform.EOL UNKNOWN
The end-of-line sequence has not been determined.


CR

public static final Platform.EOL CR
Carriage-return end-of-line sequence (i.e., "\r"). Typically used for MacIntosh.


LF

public static final Platform.EOL LF
Line-feed end-of-line sequence (i.e., "\n"). Typically used for Unix/Solaris/Linux.


CRLF

public static final Platform.EOL CRLF
Carriage-return + Line-feed end-of-line sequence (i.e., "\r\n"). Typically used from Microsoft Windows.


WINDOWS

public static final Platform.EOL WINDOWS
End of line sequence commonly used on Windows.

See Also:
Platform.EOL.CRLF

UNIX

public static final Platform.EOL UNIX
End of line sequence commonly used on Unix/Linux/Solaris.

See Also:
Platform.EOL.LF

MAC

public static final Platform.EOL MAC
End of line sequence commonly used on the MacIntosh.

See Also:
Platform.EOL.LF

ALL

public static final Platform.EOL[] ALL
All legal EOL format values.

Method Detail

getID

public int getID()
The ID of the corresponding end of line sequence.

Returns:
The ID of this end of line sequence.

getEOL

public java.lang.String getEOL()
Gets the actual end-of-line character sequence for this EOLFormat.

Returns:
String

fromID

public static Platform.EOL fromID(int id)
Gets the end-of-line sequence value corresponding to the given ID.

Parameters:
id - The ID of an end of line sequence.
Returns:
The corresponding EOL value, or null.

fromEOL

public static Platform.EOL fromEOL(java.lang.String eol)
Determines the EOL whose end-of-line character sequence matches the given one. Returns UNKNOWN if the given eol doesn't match any of the known EOLs.

Parameters:
eol - String
Returns:
EOLFormat


StarTeam SDK 14.0, Build 21
Copyright © 2003-2012 Borland Software Corporation. All rights reserved.