| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| Licensed to the Apache Software Foundation (ASF) under one or more contributor |
| license agreements. See the NOTICE.txt file distributed with this work for |
| additional information regarding copyright ownership. The ASF licenses this |
| file to you under the Apache License, Version 2.0 (the "License"); you may not |
| use this file except in compliance with the License. You may obtain a copy of |
| the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
| WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the |
| License for the specific language governing permissions and limitations under |
| the License. |
| --> |
| <cas:mimetypemap xmlns:cas="http://oodt.jpl.nassa.gov/1.0/cas" magic="true or false" mimeRepo="path/to/tika-mimetypes/xml/file"> |
| |
| <!-- extractor specs for mime-type from mimetypes.xml (one or more) --> |
| <mime type="some/mime-type"> |
| |
| <!-- naming convention for renaming file (zero or one) --> |
| <namingConvention id="id_from_application_context_bean_file" /> |
| |
| <!-- extractor spec for given mime-type (one or more) --> |
| <extractor class="extractor.class"> |
| |
| <!-- extractor config file (zero or one) --> |
| <config file="extractor/config/file"/> |
| |
| <!-- precondition comparators (zero or one) --> |
| <preCondComparators> |
| |
| <!-- precondition comparator id (one or more) --> |
| <preCondComparator id="id_from_application_context_bean_file"/> |
| |
| </preCondComparators> |
| |
| </extractor> |
| |
| </mime> |
| |
| </cas:mimetypemap> |