Class CSVUtil
java.lang.Object
com.github.stefvanschie.inventoryframework.util.CSVUtil
public final class CSVUtil
extends java.lang.Object
A utility class for reading csv files
- Since:
- 0.5.0
-
Method Summary
Modifier and Type Method Description static @NotNull java.util.List<java.lang.String[]>
readAll(@NotNull java.io.InputStream inputStream)
Reads the entire file and returns it as a list of strings.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Method Details
-
readAll
@NotNull public static @NotNull java.util.List<java.lang.String[]> readAll(@NotNull @NotNull java.io.InputStream inputStream) throws java.io.IOExceptionReads 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:
java.io.IOException
- when reading fails for any reason- Since:
- 0.5.0
-