Class FileIngest

java.lang.Object
org.localify.data.ingest.FileIngest

@Service public class FileIngest extends Object
A service for ingesting data from files.
  • Constructor Details

    • FileIngest

      public FileIngest(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
      Constructs a new FileIngest.
      Parameters:
      objectMapper - The object mapper.
  • Method Details

    • readRymJsonFilesFromDirectory

      public List<RymJsonArtist> readRymJsonFilesFromDirectory(String directoryPath) throws IOException
      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.