Class TexPlainDetector

java.lang.Object
com.denodo.commons.util.mime.detector.TexPlainDetector
All Implemented Interfaces:
MimeTypeDetector

public class TexPlainDetector extends Object implements MimeTypeDetector
Mimetype detector for text plain.
  • Constructor Details

    • TexPlainDetector

      public TexPlainDetector()
  • Method Details

    • detect

      public boolean detect(String text)
      Based on RFC 2046 Section 4.1.2. Treat any char 0-31 except the 9-13 range (\t, \n, \v, \f, \r) and char 27 (used by encodings like Shift_JIS) as non-text
      Specified by:
      detect in interface MimeTypeDetector