public class LineEnder extends Object
Modifier and Type | Field and Description |
---|---|
static LineEnder |
BACKSLASH
Backslash followed by carriage return (Un*x shells).
|
static LineEnder |
BACKTICK
Backtick followed by carriage return (Windows PowerShell).
|
static LineEnder |
CARET
Caret followed by carriage return (DOS CMD).
|
static LineEnder |
ONELINE
No line breaks, just one long line.
|
static LineEnder[] |
OPTIONS
All options.
|
static LineEnder |
PLAIN
Just a carriage return.
|
Constructor and Description |
---|
LineEnder(String name,
String eol)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
getEndOfLine()
Returns the end of line text.
|
boolean |
includesNewline()
Indicates whether a newline forms part of the EOL string.
|
String |
toString()
Returns name.
|
public static final LineEnder PLAIN
public static final LineEnder BACKSLASH
public static final LineEnder CARET
public static final LineEnder BACKTICK
public static final LineEnder ONELINE
public static final LineEnder[] OPTIONS
public String getEndOfLine()
public boolean includesNewline()
Copyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.