mercredi 5 décembre 2018

Desing pattern suggestions for sequential jobs which follows previous steps output

I want to design a subtitle-word parser. It works like that;

  1. Check subtitle provider for availability
  2. Fetch subtitle as inputStream
  3. Convert inputStream to lines of text
  4. Parse lines to sections ( A subtitle file includes 100 - 110 sections )
  5. Parse sections' sentences to words
  6. Save subtitle, section and word to DB

As you see every step follows previous steps output.

Which design pattern(s) I should use?

Aucun commentaire:

Enregistrer un commentaire