CharacterConversions
instead.@Deprecated public class LineSeparatorConversion extends Object
Modifier and Type | Class and Description |
---|---|
static class |
LineSeparatorConversion.FromLineFeed
Deprecated.
Convert all the occurrences of '\n' in the given text
to the requested line separator.
|
static class |
LineSeparatorConversion.InitialSeparatorReader
Deprecated.
|
static class |
LineSeparatorConversion.ToLineFeed
Deprecated.
Convert all the occurrences of '\r' and '\r\n' in the text to '\n'.
|
Modifier and Type | Field and Description |
---|---|
static char |
LS
Deprecated.
Unicode line separator.
|
static String |
LS_LS
Deprecated.
|
static String |
LS_PS
Deprecated.
|
static char |
PS
Deprecated.
Unicode paragraph separator.
|
Modifier and Type | Method and Description |
---|---|
static void |
convertFromLineFeed(String text,
int offset,
int length,
String lineFeedReplace,
StringBuffer output)
Deprecated.
Convert all the occurrences of '\n' in the given text
to the requested line separator.
|
static String |
convertFromLineFeed(String text,
String lineFeedReplace)
Deprecated.
Convert all the occurrences of '\n' in the given text
to the requested line separator.
|
static String |
convertToLineFeed(String text)
Deprecated.
Convert all the occurrences of '\r' and '\r\n' in the text to '\n'.
|
static void |
convertToLineFeed(String text,
int offset,
int length,
StringBuffer output)
Deprecated.
Convert all the occurrences of '\r' and '\r\n' in the text to '\n'.
|
public static final char LS
public static final char PS
public static final String LS_LS
public static final String LS_PS
public static String convertToLineFeed(String text)
text
- text being convertedpublic static void convertToLineFeed(String text, int offset, int length, StringBuffer output)
text
- text being convertedoffset
- offset of the first character in the text to be converted.length
- number of characters to be converted.output
- output buffer to which the converted characters are added.public static String convertFromLineFeed(String text, String lineFeedReplace)
text
- text being convertedlineFeedReplace
- characters that replace the '\n' character
in the converted text.public static void convertFromLineFeed(String text, int offset, int length, String lineFeedReplace, StringBuffer output)
text
- text being convertedoffset
- offset of the first character in the text to be converted.length
- number of characters to be converted.lineFeedReplace
- characters that replace the '\n' character in the outputoutput
- output buffer to which the converted characters are added.