public class RegexEncodingDetector
An encoding detector which finds regex pattern.
This reads the sample in the system default encoding for first some
lines and look for a regex pattern. This can fail if the
stream cannot be read in the system default encoding or the
pattern is not found at near the top of the stream.