Class TextParser
java.lang.Object
com.jackmeng.halcyoninae.halcyon.utils.TextParser
A utility class for text manipulation
- Since:
- 3.0
- Author:
- Jack Meng
-
Constructor Details
-
TextParser
private TextParser()
-
-
Method Details
-
strip
Returns a string that has been stripped based on the desired length.For example:
strip("helloworld", 2) --> "he..."
- Parameters:
str
- The string to stripvalidLength
- The valid length (from 1)- Returns:
- A string that has been stripped based on the desired length
-
fulfill
- Parameters:
str
-validLength
-- Returns:
- String
-
getCopies
- Parameters:
n
-s
-- Returns:
- String
-
clipText
- Parameters:
str
-- Returns:
- String
-
isInteger
- Parameters:
str
-- Returns:
- boolean
-
getPropertyTextEncodingName
- Returns:
- String
-
parseAsPure
- Parameters:
str
-- Returns:
- String
-
getCharset
- Returns:
- Charset
-