java.lang.Object
io.sf.jclf.text.TextFile
Convenience class for system text utility functions, like unix-dos line break
conversions.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
toDosString
(String text) Transforms a string formatted with Unix-style line breaks (CRLF) to DOS line breaks (LF).static String
toUnixString
(String text) Transforms a string formatted with DOS-style line breaks (CRLF) to Unix line breaks (LF).
-
Constructor Details
-
TextFile
public TextFile()
-
-
Method Details
-
toDosString
Transforms a string formatted with Unix-style line breaks (CRLF) to DOS line breaks (LF).- Parameters:
text
- text with Unix-style line breaks.- Returns:
- text with DOS-style line breaks.
-
toUnixString
Transforms a string formatted with DOS-style line breaks (CRLF) to Unix line breaks (LF).- Parameters:
text
- text with DOS-style line breaks.- Returns:
- text with Unix-style line breaks.
-