fixedformat4j
fixedformat4j copied to clipboard
Don't trim the leading and trailing spaces while parsing into a String
The spaces are being trimmed after the manager.load method parses the fixed formatted data.
In my case, if the string contains only SPACES " ", it returns an empty String after parsing "".
But my requirement is to retain those leading and trailing spaces.
For example:
Input: "ABCDE " (Has 5 trailing spaces)
Output: "ABCDE" (The spaces are trimmed)
But my required output is: "ABCDE " (I want the output to retain the trailing spaces)
Is there a way this can be achieved with this library?
x2