title: Define a MIME type for .TXT files for Tika
body: <p>I want to define the MIME type of *.txt files: <code>text/txt</code>, so that Tika can apply a more specific parser than the one used for <code>text/plain</code> files.</p>
  
  <p>The glob <code>*.txt</code> is included in the definition of the type <code>text/plain</code> in <code>tika-mimetypes.xml</code>. Moreover, it seems to me that you cannot redefine a MIME type in <code>custom-mimetypes.xml</code>, only add new globs or magic patterns. Additionally, if I define the <code>text/txt</code> type in <code>tika-mimetypes.xml</code> as a subtype of <code>text/plain</code> with only the glob <code>*.txt</code>, Tika still detects a txt file as <code>text/plain</code>.</p>
  
  <p>Is it absurd to define a subtype of <code>text/plain</code> only for txt files? If not, is it possible to define it only with <code>custom-mimetypes.xml</code>? If not, what is the easiest way to extend tika so that it can parse txt files differently than (let's say) STEP 3D CAD .stp files or .cfg files?</p>
  
  <p>The use case in detail: I have a large source of data composed of (recursive) archives. Some plain text files are huge and I don't want Tika to parse them. However, I want to keep all the txt files.</p>
  
  <p><strong>Edit</strong>: specify that I don't want to keep .cfg files either (<code>*.cfg</code> is a glob of <code>text/plain</code>)</p>