|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.univocity.parsers.conversions.TrimConversion
public class TrimConversion
Removes leading and trailing white spaces from an input String
The revert(String) implements the same behavior of execute(String). Null inputs produce null outputs.
| Constructor Summary | |
|---|---|
TrimConversion()
Creates a trim conversion that removes leading and trailing whitespaces of any input String. |
|
TrimConversion(int length)
Creates a trim-to-length conversion that limits the length of any resulting String. |
|
| Method Summary | |
|---|---|
String |
execute(String input)
Removes leading and trailing white spaces from the input and returns the result. |
String |
revert(String input)
Removes leading and trailing white spaces from the input and returns the result. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TrimConversion()
public TrimConversion(int length)
length - the maximum number of characters of any String returned by this conversion.| Method Detail |
|---|
public String execute(String input)
revert(String)
execute in interface Conversion<String,String>input - the String to be trimmed
public String revert(String input)
execute(String)
revert in interface Conversion<String,String>input - the String to be trimmed
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||