org.netbeans.modules.editor.lib/1 1.44.0 9

org.netbeans.editor
Class LineSeparatorConversion

java.lang.Object
  extended by org.netbeans.editor.LineSeparatorConversion

Deprecated. Use CharacterConversions instead.

public class LineSeparatorConversion
extends Object

Converters handling the various line separators.


Nested Class Summary
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'.
 
Field Summary
static char LS
          Deprecated. Unicode line separator.
static String LS_LS
          Deprecated.  
static String LS_PS
          Deprecated.  
static char PS
          Deprecated. Unicode paragraph separator.
 
Method Summary
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'.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LS

public static final char LS
Deprecated. 
Unicode line separator. See #100842.

See Also:
Constant Field Values

PS

public static final char PS
Deprecated. 
Unicode paragraph separator. See #100842.

See Also:
Constant Field Values

LS_LS

public static final String LS_LS
Deprecated. 

LS_PS

public static final String LS_PS
Deprecated. 
Method Detail

convertToLineFeed

public static String convertToLineFeed(String text)
Deprecated. 
Convert all the occurrences of '\r' and '\r\n' in the text to '\n'.

Parameters:
text - text being converted
Returns:
converted text with '\n' instead of '\r' and '\r\n'.

convertToLineFeed

public 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'.

Parameters:
text - text being converted
offset - 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.

convertFromLineFeed

public static String convertFromLineFeed(String text,
                                         String lineFeedReplace)
Deprecated. 
Convert all the occurrences of '\n' in the given text to the requested line separator.

Parameters:
text - text being converted
lineFeedReplace - characters that replace the '\n' character in the converted text.
Returns:
converted text with replaced '\n' by characters from lineFeedReplace string

convertFromLineFeed

public 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.

Parameters:
text - text being converted
offset - 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 output
output - output buffer to which the converted characters are added.

org.netbeans.modules.editor.lib/1 1.44.0 9

Built on November 22 2009.  |  Portions Copyright 1997-2009 Sun Microsystems, Inc. All rights reserved.