Class CSVUtil
java.lang.Object
me.despical.inventoryframework.util.CSVUtil
A utility class for reading csv files
- Since:
- 1.0.1
Created at 04.09.2020
- Author:
- Despical
-
Method Summary
Modifier and TypeMethodDescriptionreadAll(@NotNull InputStream inputStream) Reads the entire file and returns it as a list of strings.
-
Method Details
-
readAll
@NotNull public static @NotNull List<String[]> readAll(@NotNull @NotNull InputStream inputStream) throws IOException Reads the entire file and returns it as a list of strings.- Parameters:
inputStream- the input stream to read from- Returns:
- a list of strings containing the values inside the file
- Throws:
IOException- when reading fails for any reason- Since:
- 1.0.1
-