Class DotenvParser
- java.lang.Object
-
- io.github.cdimascio.dotenv.internal.DotenvParser
-
public class DotenvParser extends Object
(Internal) Parses .env file
-
-
Constructor Summary
Constructors Constructor Description DotenvParser(DotenvReader reader, boolean throwIfMissing, boolean throwIfMalformed)
Creates a dotenv parser
-
-
-
Constructor Detail
-
DotenvParser
public DotenvParser(DotenvReader reader, boolean throwIfMissing, boolean throwIfMalformed)
Creates a dotenv parser- Parameters:
reader
- the dotenv readerthrowIfMissing
- if true, throws when the .env file is missingthrowIfMalformed
- if true, throws when the .env file is malformed
-
-
Method Detail
-
parse
public List<DotenvEntry> parse() throws DotenvException
(Internal) parse the .env file- Returns:
- a list of DotenvEntries
- Throws:
DotenvException
- if an error is encountered during the parse
-
-