Interface IDocumentParser
- All Known Implementing Classes:
CountryCsvParser
,CsvParser
,WeatherCsvParser
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Interface for parsing a document from a given file path.
Implementations should handle the logic for reading the file.
Implementations should handle the logic for reading the file.
-
Method Summary
Modifier and TypeMethodDescriptionparseDocument
(String filepath) Parses a document from the specified file path.
-
Method Details
-
parseDocument
Parses a document from the specified file path.- Parameters:
filepath
- theString
representation of the documents filepath- Returns:
- a
Document
representing the parsed content - Throws:
DocumentCreationException
- if parsing the file fails
-