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 Summary
-
Constructor Details
-
DotenvReader
Creates a dotenv reader- Parameters:
directory
- the directory containing the .env filefilename
- the file name of the .env file e.g. .env
-
-
Method Details
-
read
(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
-