|
org.netbeans.modules.editor.lib/1 1.14.0 3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.netbeans.editor.LineSeparatorConversion
public class LineSeparatorConversion
Converters handling the various line separators.
Nested Class Summary | |
---|---|
static class |
LineSeparatorConversion.FromLineFeed
Convert all the occurrences of '\n' in the given text to the requested line separator. |
static class |
LineSeparatorConversion.InitialSeparatorReader
|
static class |
LineSeparatorConversion.ToLineFeed
Convert all the occurrences of '\r' and '\r\n' in the text to '\n'. |
Method Summary | |
---|---|
static void |
convertFromLineFeed(String text,
int offset,
int length,
String lineFeedReplace,
StringBuffer output)
Convert all the occurrences of '\n' in the given text to the requested line separator. |
static String |
convertFromLineFeed(String text,
String lineFeedReplace)
Convert all the occurrences of '\n' in the given text to the requested line separator. |
static String |
convertToLineFeed(String text)
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)
Convert all the occurrences of '\r' and '\r\n' in the text to '\n'. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static String convertToLineFeed(String text)
text
- text being converted
public 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.
|
org.netbeans.modules.editor.lib/1 1.14.0 3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |