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 -
Method Summary
Modifier and Type Method Description List<DotenvEntry>parse()(Internal) parse the .env file
-
Constructor Details
-
DotenvParser
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 Details
-
parse
(Internal) parse the .env file- Returns:
- a list of DotenvEntries
- Throws:
DotenvException- if an error is encountered during the parse
-