Class DotenvParser
java.lang.Object
io.github.mihkels.dotenv.internal.DotenvParser
(Internal) Parses .env file
-
Constructor Summary
ConstructorsConstructorDescriptionDotenvParser(DotenvReader reader, boolean throwIfMissing, boolean throwIfMalformed) Creates a dotenv parser -
Method Summary
-
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
-