Nick Burch, would you mind taking a look at the detector? Is there a way that we can convert this to a mime definition? Or should we add a DBFDetector?
Nick C, it looks great to me. I agree that we'll probably want to relax some of the length checks (just make sure they're > 0 or something reasonable)...we wouldn't want this to fail on truncated dbfs, and as you've pointed out, there can be extra bytes at the end of the file. If there's any way to avoid adding the dependency, that'd be great...although, I very much appreciate the concern for overflow!
In your experience, do we need to validate the fieldentry or can we stop sooner? If we do, then I suspect there's no way to convert to a mime definition, but I suspect much of the earlier stuff could easily be translated.
Oh, and please make sure to add an Apache license header...unless Nick B can easily translate this to a mime definition.