Package org.localify.data.ingest
Class FileIngest
java.lang.Object
org.localify.data.ingest.FileIngest
A service for ingesting data from files.
-
Constructor Summary
ConstructorsConstructorDescriptionFileIngest(com.fasterxml.jackson.databind.ObjectMapper objectMapper) Constructs a new FileIngest. -
Method Summary
Modifier and TypeMethodDescriptionreadRymJsonFilesFromDirectory(String directoryPath) Reads all RYM JSON files from a directory.
-
Constructor Details
-
FileIngest
public FileIngest(com.fasterxml.jackson.databind.ObjectMapper objectMapper) Constructs a new FileIngest.- Parameters:
objectMapper- The object mapper.
-
-
Method Details
-
readRymJsonFilesFromDirectory
Reads all RYM JSON files from a directory.- Parameters:
directoryPath- The path to the directory.- Returns:
- A list of RYM JSON artists.
- Throws:
IOException- If an I/O error occurs.
-