Class DotenvReader
- java.lang.Object
-
- io.github.cdimascio.dotenv.internal.DotenvReader
-
public class DotenvReader extends Object
(Internal) Reads a .env file
-
-
Constructor Summary
Constructors Constructor Description DotenvReader(String directory, String filename)
Creates a dotenv reader
-
-
-
Method Detail
-
read
public List<String> read() throws DotenvException, IOException
(Internal) Reads the .env file- Returns:
- a list containing the contents of each line in the .env file
- Throws:
DotenvException
- if a dotenv error occursIOException
- if an I/O error occurs
-
-