|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.easycsv.CsvUtil
public final class CsvUtil
| Method Summary | ||
|---|---|---|
static java.util.List<java.util.List<java.lang.String>> |
getAsStringList(java.util.List<CsvRow> csvRows)
Converts a list of CsvRows to a list of string-lists representing the value of the given CsvRows. |
|
static
|
listDupeCheck(java.util.List<T> c)
Check if the given list contains dupes. |
|
static java.lang.String |
ltrim(java.lang.String str)
Returns a copy of the string, with leading whitespace omitted. |
|
static void |
normalizeStrings(ImportSettings importSettings,
java.util.List<java.lang.String> strings)
Normalize a list of strings with the settings specified in importSettings. |
|
static java.util.List<java.lang.String> |
rowSplit(ImportSettings importSettings,
java.lang.String str)
|
|
static java.lang.String |
rtrim(java.lang.String str)
Returns a copy of the string, with trailing whitespace omitted. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static java.lang.String ltrim(java.lang.String str)
str - The string to be trim'ed
java.util.String#trim()public static java.lang.String rtrim(java.lang.String str)
str - The string to be trim'ed
java.util.String#trim()
public static void normalizeStrings(ImportSettings importSettings,
java.util.List<java.lang.String> strings)
importSettings - the settings how the strings should be normalizedstrings - the strings to be normalizedpublic static java.util.List<java.util.List<java.lang.String>> getAsStringList(java.util.List<CsvRow> csvRows)
csvRows - the list of CsvRows
public static java.util.List<java.lang.String> rowSplit(ImportSettings importSettings,
java.lang.String str)
importSettings - str -
public static <T> java.util.List<T> listDupeCheck(java.util.List<T> c)
List - a list of objects
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||