ots-sn-filename-reader
v0.1.1
Published
Reads a file name and determines if it's a play-by-play file or some other type of file. If it is a play-by-play file, it can determine what sport it's for.
Downloads
3
Readme
OTS Sports Network Filename Reader
This program needs to be able to look at an XML file from The Sports and determine 2 things:
- Is it a play by play file or some other file.
- If it's a play by play file, what sport is it for?
This program is a readable stream with the stream output piped to stdout.
By knowing the sport, we can send the play by play files to the appropriate parser immediately. If we need to examine the file contents to determine the sport and type of file, we can use the heading parser. This program should work if the file is referenced by a path or directly by filename.
stdout output is formatted like so: <>|<<FILE_TYPE>>|<>