Kitxuuu commited on
Commit
f486fb7
·
verified ·
1 Parent(s): f9ef53f

Add files using upload-large-folder tool

Browse files
Files changed (20) hide show
  1. local-test-tika-delta-05/afc-tika/tika-core/src/test/resources/org/apache/tika/config/TIKA-1445-default-except.xml +31 -0
  2. local-test-tika-delta-05/afc-tika/tika-core/src/test/resources/org/apache/tika/config/TIKA-1509-multiple-supplemental.xml +46 -0
  3. local-test-tika-delta-05/afc-tika/tika-core/src/test/resources/org/apache/tika/config/TIKA-1700-unknown-parser.xml +25 -0
  4. local-test-tika-delta-05/afc-tika/tika-core/src/test/resources/org/apache/tika/config/TIKA-1762-executors.xml +31 -0
  5. local-test-tika-delta-05/afc-tika/tika-core/src/test/resources/org/apache/tika/config/TIKA-1986-bad-types.xml +26 -0
  6. local-test-tika-delta-05/afc-tika/tika-core/src/test/resources/org/apache/tika/config/TIKA-2389-illegal.xml +29 -0
  7. local-test-tika-delta-05/afc-tika/tika-core/src/test/resources/org/apache/tika/config/TIKA-3137-field-mapping.xml +31 -0
  8. local-test-tika-delta-05/afc-tika/tika-core/src/test/resources/org/apache/tika/config/TIKA-3137-include-uc.xml +30 -0
  9. local-test-tika-delta-05/afc-tika/tika-core/src/test/resources/org/apache/tika/config/TIKA-3137-include.xml +29 -0
  10. local-test-tika-delta-05/afc-tika/tika-core/src/test/resources/org/apache/tika/config/TIKA-3137-mimes-uc.xml +28 -0
  11. local-test-tika-delta-05/afc-tika/tika-core/src/test/resources/org/apache/tika/config/TIKA-3268-bad-parser-exclude.xml +25 -0
  12. local-test-tika-delta-05/afc-tika/tika-core/src/test/resources/org/apache/tika/config/TIKA-3557-exiftool-example.xml +53 -0
  13. local-test-tika-delta-05/afc-tika/tika-core/src/test/resources/org/apache/tika/config/TIKA-3695-exclude.xml +35 -0
  14. local-test-tika-delta-05/afc-tika/tika-core/src/test/resources/org/apache/tika/config/TIKA-3865-params.xml +41 -0
  15. local-test-tika-delta-05/afc-tika/tika-core/src/test/resources/org/apache/tika/config/TIKA-4207-embedded-bytes-config.xml +38 -0
  16. local-test-tika-delta-05/afc-tika/tika-core/src/test/resources/org/apache/tika/config/mockConfig.xml +35 -0
  17. local-test-tika-delta-05/afc-tika/tika-core/src/test/resources/org/apache/tika/mime/custom-mimetypes-badMinShouldMatch3.xml +37 -0
  18. local-test-tika-delta-05/afc-tika/tika-core/src/test/resources/org/apache/tika/mime/test-difficult-rdf1.xml +39 -0
  19. local-test-tika-delta-05/afc-tika/tika-core/src/test/resources/org/apache/tika/mime/test-tika-327.html +50 -0
  20. local-test-tika-delta-05/afc-tika/tika-core/src/test/resources/org/apache/tika/mime/test.xls +0 -0
local-test-tika-delta-05/afc-tika/tika-core/src/test/resources/org/apache/tika/config/TIKA-1445-default-except.xml ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!--
3
+ Licensed to the Apache Software Foundation (ASF) under one or more
4
+ contributor license agreements. See the NOTICE file distributed with
5
+ this work for additional information regarding copyright ownership.
6
+ The ASF licenses this file to You under the Apache License, Version 2.0
7
+ (the "License"); you may not use this file except in compliance with
8
+ the License. You may obtain a copy of the License at
9
+
10
+ http://www.apache.org/licenses/LICENSE-2.0
11
+
12
+ Unless required by applicable law or agreed to in writing, software
13
+ distributed under the License is distributed on an "AS IS" BASIS,
14
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ See the License for the specific language governing permissions and
16
+ limitations under the License.
17
+ -->
18
+ <properties>
19
+ <parsers>
20
+ <parser class="org.apache.tika.parser.DefaultParser">
21
+ <mime-exclude>hello/world</mime-exclude>
22
+ <mime-exclude>fail/world</mime-exclude>
23
+ </parser>
24
+ <parser class="org.apache.tika.parser.EmptyParser">
25
+ <mime>hello/world</mime>
26
+ </parser>
27
+ <parser class="org.apache.tika.parser.ErrorParser">
28
+ <mime>fail/world</mime>
29
+ </parser>
30
+ </parsers>
31
+ </properties>
local-test-tika-delta-05/afc-tika/tika-core/src/test/resources/org/apache/tika/config/TIKA-1509-multiple-supplemental.xml ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!--
3
+ Licensed to the Apache Software Foundation (ASF) under one or more
4
+ contributor license agreements. See the NOTICE file distributed with
5
+ this work for additional information regarding copyright ownership.
6
+ The ASF licenses this file to You under the Apache License, Version 2.0
7
+ (the "License"); you may not use this file except in compliance with
8
+ the License. You may obtain a copy of the License at
9
+
10
+ http://www.apache.org/licenses/LICENSE-2.0
11
+
12
+ Unless required by applicable law or agreed to in writing, software
13
+ distributed under the License is distributed on an "AS IS" BASIS,
14
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ See the License for the specific language governing permissions and
16
+ limitations under the License.
17
+ -->
18
+ <properties>
19
+ <parsers>
20
+
21
+ <!-- Defaults except for PDF -->
22
+ <parser class="org.apache.tika.parser.DefaultParser">
23
+ <mime-exclude>application/pdf</mime-exclude>
24
+ </parser>
25
+
26
+ <!-- For PDF, run several parsers over the input PDF, -->
27
+ <!-- recording failures, and merging the metadata -->
28
+ <parser class="org.apache.tika.parser.multiple.FallbackParser">
29
+ <params>
30
+ <!-- If several parsers output the same metadata key, first parser to do so wins -->
31
+ <param name="metadataPolicy" value="FIRST_WINS" />
32
+ <!-- If several parsers output the same metadata key, last parser to do so wins -->
33
+ <!--
34
+ <param name="metadataPolicy" value="LAST_WINS" />
35
+ -->
36
+ <!-- If several parsers output the same metadata key, store all their values -->
37
+ <!--
38
+ <param name="metadataPolicy" value="KEEP_ALL" />
39
+ -->
40
+ </params>
41
+ <parser class="org.apache.tika.parser.EmptyParser"/>
42
+ <parser class="org.apache.tika.parser.ErrorParser"/>
43
+ <mime>application/pdf</mime>
44
+ </parser>
45
+ </parsers>
46
+ </properties>
local-test-tika-delta-05/afc-tika/tika-core/src/test/resources/org/apache/tika/config/TIKA-1700-unknown-parser.xml ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!--
3
+ Licensed to the Apache Software Foundation (ASF) under one or more
4
+ contributor license agreements. See the NOTICE file distributed with
5
+ this work for additional information regarding copyright ownership.
6
+ The ASF licenses this file to You under the Apache License, Version 2.0
7
+ (the "License"); you may not use this file except in compliance with
8
+ the License. You may obtain a copy of the License at
9
+
10
+ http://www.apache.org/licenses/LICENSE-2.0
11
+
12
+ Unless required by applicable law or agreed to in writing, software
13
+ distributed under the License is distributed on an "AS IS" BASIS,
14
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ See the License for the specific language governing permissions and
16
+ limitations under the License.
17
+ -->
18
+ <properties>
19
+ <parsers>
20
+ <parser class="org.apache.tika.parser.EmptyParser">
21
+ <mime>hello/world</mime>
22
+ </parser>
23
+ <parser class="made.up.invalid" />
24
+ </parsers>
25
+ </properties>
local-test-tika-delta-05/afc-tika/tika-core/src/test/resources/org/apache/tika/config/TIKA-1762-executors.xml ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+
3
+ <!--
4
+ Licensed to the Apache Software Foundation (ASF) under one or more
5
+ contributor license agreements. See the NOTICE file distributed with
6
+ this work for additional information regarding copyright ownership.
7
+ The ASF licenses this file to You under the Apache License, Version 2.0
8
+ (the "License"); you may not use this file except in compliance with
9
+ the License. You may obtain a copy of the License at
10
+
11
+ http://www.apache.org/licenses/LICENSE-2.0
12
+
13
+ Unless required by applicable law or agreed to in writing, software
14
+ distributed under the License is distributed on an "AS IS" BASIS,
15
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ See the License for the specific language governing permissions and
17
+ limitations under the License.
18
+ -->
19
+ <properties>
20
+ <service-loader dynamic="true"/>
21
+ <parsers>
22
+ <parser class="org.apache.tika.config.DummyParser"/>
23
+ </parsers>
24
+ <encodingDetectors>
25
+ <encodingDetector class="org.apache.tika.detect.NonDetectingEncodingDetector"/>
26
+ </encodingDetectors>
27
+ <executor-service class="org.apache.tika.config.DummyExecutor">
28
+ <core-threads>3</core-threads>
29
+ <max-threads>10</max-threads>
30
+ </executor-service>
31
+ </properties>
local-test-tika-delta-05/afc-tika/tika-core/src/test/resources/org/apache/tika/config/TIKA-1986-bad-types.xml ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!--
3
+ Licensed to the Apache Software Foundation (ASF) under one or more
4
+ contributor license agreements. See the NOTICE file distributed with
5
+ this work for additional information regarding copyright ownership.
6
+ The ASF licenses this file to You under the Apache License, Version 2.0
7
+ (the "License"); you may not use this file except in compliance with
8
+ the License. You may obtain a copy of the License at
9
+
10
+ http://www.apache.org/licenses/LICENSE-2.0
11
+
12
+ Unless required by applicable law or agreed to in writing, software
13
+ distributed under the License is distributed on an "AS IS" BASIS,
14
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ See the License for the specific language governing permissions and
16
+ limitations under the License.
17
+ -->
18
+ <properties>
19
+ <parsers>
20
+ <parser class="org.apache.tika.parser.DummyParameterizedParser">
21
+ <params>
22
+ <param name="xint" type="zippity">When in the course of human events</param>
23
+ </params>
24
+ </parser>
25
+ </parsers>
26
+ </properties>
local-test-tika-delta-05/afc-tika/tika-core/src/test/resources/org/apache/tika/config/TIKA-2389-illegal.xml ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!--
3
+ Licensed to the Apache Software Foundation (ASF) under one or more
4
+ contributor license agreements. See the NOTICE file distributed with
5
+ this work for additional information regarding copyright ownership.
6
+ The ASF licenses this file to You under the Apache License, Version 2.0
7
+ (the "License"); you may not use this file except in compliance with
8
+ the License. You may obtain a copy of the License at
9
+
10
+ http://www.apache.org/licenses/LICENSE-2.0
11
+
12
+ Unless required by applicable law or agreed to in writing, software
13
+ distributed under the License is distributed on an "AS IS" BASIS,
14
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ See the License for the specific language governing permissions and
16
+ limitations under the License.
17
+ -->
18
+ <properties>
19
+ <parsers>
20
+ <parser-exclude class="org.apache.tika.parser.DefaultParser"/>
21
+ <parser class="org.apache.tika.parser.DummyInitializableParser" initializableProblemHandler="impossible.method">
22
+ <params>
23
+ <param name="shortA" type="short">500</param>
24
+ <param name="shortB" type="short">501</param>
25
+ </params>
26
+ </parser>
27
+
28
+ </parsers>
29
+ </properties>
local-test-tika-delta-05/afc-tika/tika-core/src/test/resources/org/apache/tika/config/TIKA-3137-field-mapping.xml ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!--
3
+ Licensed to the Apache Software Foundation (ASF) under one or more
4
+ contributor license agreements. See the NOTICE file distributed with
5
+ this work for additional information regarding copyright ownership.
6
+ The ASF licenses this file to You under the Apache License, Version 2.0
7
+ (the "License"); you may not use this file except in compliance with
8
+ the License. You may obtain a copy of the License at
9
+
10
+ http://www.apache.org/licenses/LICENSE-2.0
11
+
12
+ Unless required by applicable law or agreed to in writing, software
13
+ distributed under the License is distributed on an "AS IS" BASIS,
14
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ See the License for the specific language governing permissions and
16
+ limitations under the License.
17
+ -->
18
+ <properties>
19
+ <metadataFilters>
20
+ <metadataFilter class="org.apache.tika.metadata.filter.FieldNameMappingFilter">
21
+ <excludeUnmapped>true</excludeUnmapped>
22
+ <mappings>
23
+ <mapping from="X-TIKA:content" to="content"/>
24
+ <mapping from="a" to="b"/>
25
+ <!-- note that the mapping only works once...not recursively -->
26
+ <mapping from="b" to="c"/>
27
+ <mapping from="c" to="d"/>
28
+ </mappings>
29
+ </metadataFilter>
30
+ </metadataFilters>
31
+ </properties>
local-test-tika-delta-05/afc-tika/tika-core/src/test/resources/org/apache/tika/config/TIKA-3137-include-uc.xml ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!--
3
+ Licensed to the Apache Software Foundation (ASF) under one or more
4
+ contributor license agreements. See the NOTICE file distributed with
5
+ this work for additional information regarding copyright ownership.
6
+ The ASF licenses this file to You under the Apache License, Version 2.0
7
+ (the "License"); you may not use this file except in compliance with
8
+ the License. You may obtain a copy of the License at
9
+
10
+ http://www.apache.org/licenses/LICENSE-2.0
11
+
12
+ Unless required by applicable law or agreed to in writing, software
13
+ distributed under the License is distributed on an "AS IS" BASIS,
14
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ See the License for the specific language governing permissions and
16
+ limitations under the License.
17
+ -->
18
+ <properties>
19
+ <metadataFilters>
20
+ <metadataFilter class="org.apache.tika.metadata.filter.IncludeFieldMetadataFilter">
21
+ <params>
22
+ <include>
23
+ <field>title</field>
24
+ <field>author</field>
25
+ </include>
26
+ </params>
27
+ </metadataFilter>
28
+ <metadataFilter class="org.apache.tika.metadata.filter.MockUpperCaseFilter"/>
29
+ </metadataFilters>
30
+ </properties>
local-test-tika-delta-05/afc-tika/tika-core/src/test/resources/org/apache/tika/config/TIKA-3137-include.xml ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!--
3
+ Licensed to the Apache Software Foundation (ASF) under one or more
4
+ contributor license agreements. See the NOTICE file distributed with
5
+ this work for additional information regarding copyright ownership.
6
+ The ASF licenses this file to You under the Apache License, Version 2.0
7
+ (the "License"); you may not use this file except in compliance with
8
+ the License. You may obtain a copy of the License at
9
+
10
+ http://www.apache.org/licenses/LICENSE-2.0
11
+
12
+ Unless required by applicable law or agreed to in writing, software
13
+ distributed under the License is distributed on an "AS IS" BASIS,
14
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ See the License for the specific language governing permissions and
16
+ limitations under the License.
17
+ -->
18
+ <properties>
19
+ <metadataFilters>
20
+ <metadataFilter class="org.apache.tika.metadata.filter.IncludeFieldMetadataFilter">
21
+ <params>
22
+ <include>
23
+ <field>title</field>
24
+ <field>author</field>
25
+ </include>
26
+ </params>
27
+ </metadataFilter>
28
+ </metadataFilters>
29
+ </properties>
local-test-tika-delta-05/afc-tika/tika-core/src/test/resources/org/apache/tika/config/TIKA-3137-mimes-uc.xml ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!--
3
+ Licensed to the Apache Software Foundation (ASF) under one or more
4
+ contributor license agreements. See the NOTICE file distributed with
5
+ this work for additional information regarding copyright ownership.
6
+ The ASF licenses this file to You under the Apache License, Version 2.0
7
+ (the "License"); you may not use this file except in compliance with
8
+ the License. You may obtain a copy of the License at
9
+
10
+ http://www.apache.org/licenses/LICENSE-2.0
11
+
12
+ Unless required by applicable law or agreed to in writing, software
13
+ distributed under the License is distributed on an "AS IS" BASIS,
14
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ See the License for the specific language governing permissions and
16
+ limitations under the License.
17
+ -->
18
+ <properties>
19
+ <metadataFilters>
20
+ <metadataFilter class="org.apache.tika.metadata.filter.ClearByMimeMetadataFilter">
21
+ <mimes>
22
+ <mime>image/jpeg</mime>
23
+ <mime>application/pdf</mime>
24
+ </mimes>
25
+ </metadataFilter>
26
+ <metadataFilter class="org.apache.tika.metadata.filter.MockUpperCaseFilter"/>
27
+ </metadataFilters>
28
+ </properties>
local-test-tika-delta-05/afc-tika/tika-core/src/test/resources/org/apache/tika/config/TIKA-3268-bad-parser-exclude.xml ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!--
3
+ Licensed to the Apache Software Foundation (ASF) under one or more
4
+ contributor license agreements. See the NOTICE file distributed with
5
+ this work for additional information regarding copyright ownership.
6
+ The ASF licenses this file to You under the Apache License, Version 2.0
7
+ (the "License"); you may not use this file except in compliance with
8
+ the License. You may obtain a copy of the License at
9
+
10
+ http://www.apache.org/licenses/LICENSE-2.0
11
+
12
+ Unless required by applicable law or agreed to in writing, software
13
+ distributed under the License is distributed on an "AS IS" BASIS,
14
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ See the License for the specific language governing permissions and
16
+ limitations under the License.
17
+ -->
18
+ <properties>
19
+ <service-loader initializableProblemHandler="throw"/>
20
+ <parsers>
21
+ <parser class="org.apache.tika.parser.DefaultParser">
22
+ <parser-exclude class="org.apache.tika.parser.zippity.doo.dah"/>
23
+ </parser>
24
+ </parsers>
25
+ </properties>
local-test-tika-delta-05/afc-tika/tika-core/src/test/resources/org/apache/tika/config/TIKA-3557-exiftool-example.xml ADDED
@@ -0,0 +1,53 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!--
3
+ Licensed to the Apache Software Foundation (ASF) under one or more
4
+ contributor license agreements. See the NOTICE file distributed with
5
+ this work for additional information regarding copyright ownership.
6
+ The ASF licenses this file to You under the Apache License, Version 2.0
7
+ (the "License"); you may not use this file except in compliance with
8
+ the License. You may obtain a copy of the License at
9
+
10
+ http://www.apache.org/licenses/LICENSE-2.0
11
+
12
+ Unless required by applicable law or agreed to in writing, software
13
+ distributed under the License is distributed on an "AS IS" BASIS,
14
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ See the License for the specific language governing permissions and
16
+ limitations under the License.
17
+ -->
18
+ <properties>
19
+ <parsers>
20
+ <parser class="org.apache.tika.parser.external2.ExternalParser">
21
+ <params>
22
+ <param name="supportedTypes" type="list">
23
+ <string>application/octet-stream</string>
24
+ </param>
25
+ <param name="commandLine" type="list">
26
+ <string>exiftool</string>
27
+ <string>${INPUT_FILE}</string>
28
+ </param>
29
+ <param name="checkExitValues" type="list">
30
+ <!-- which exit values confirm that the application basically works -->
31
+ <int>0</int>
32
+ </param>
33
+ <param name="outputParser" type="class" class="org.apache.tika.parser.RegexCaptureParser">
34
+ <params>
35
+ <param name="captureMap" type="map">
36
+ <match key="mime" value="^MIME Type\s+: ([^\r\n]+)"/>
37
+ <match key="pages" value="^Page Count\s+: ([^\r\n]+)"/>
38
+ <match key="pdf:version" value="^PDF Version\s+: ([^\r\n]+)"/>
39
+ <!--
40
+ <match key="dc:title" value="^Title\s+: ([^\r\n]+)"/>
41
+ <match key="dc:creator" value="^Author\s+: ([^\r\n]+)"/>
42
+ <match key="dc:created" value="^Create Date\s+: ([^\r\n]+)"/>
43
+ <match key="dc:modify" value="^Modify Date\s+: ([^\r\n]+)"/>
44
+ <match key="producer" value="^Producer\s+: ([^\r\n]+)"/>
45
+ <match key="creator_tool" value="^Creator Tool\s+: ([^\r\n]+)"/>
46
+ <match key="tagged" value="^Tagged PDF\s+: ([^\r\n]+)"/> -->
47
+ </param>
48
+ </params>
49
+ </param>
50
+ </params>
51
+ </parser>
52
+ </parsers>
53
+ </properties>
local-test-tika-delta-05/afc-tika/tika-core/src/test/resources/org/apache/tika/config/TIKA-3695-exclude.xml ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!--
3
+ Licensed to the Apache Software Foundation (ASF) under one or more
4
+ contributor license agreements. See the NOTICE file distributed with
5
+ this work for additional information regarding copyright ownership.
6
+ The ASF licenses this file to You under the Apache License, Version 2.0
7
+ (the "License"); you may not use this file except in compliance with
8
+ the License. You may obtain a copy of the License at
9
+
10
+ http://www.apache.org/licenses/LICENSE-2.0
11
+
12
+ Unless required by applicable law or agreed to in writing, software
13
+ distributed under the License is distributed on an "AS IS" BASIS,
14
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ See the License for the specific language governing permissions and
16
+ limitations under the License.
17
+ -->
18
+ <properties>
19
+ <parsers>
20
+ <parser class="org.apache.tika.parser.DefaultParser"/>
21
+ </parsers>
22
+ <autoDetectParserConfig>
23
+ <params>
24
+ <spoolToDisk>12345</spoolToDisk>
25
+ <outputThreshold>6789</outputThreshold>
26
+ </params>
27
+ <metadataWriteFilterFactory class="org.apache.tika.metadata.writefilter.StandardWriteFilterFactory">
28
+ <params>
29
+ <excludeFields>
30
+ <field>subject</field>
31
+ </excludeFields>
32
+ </params>
33
+ </metadataWriteFilterFactory>
34
+ </autoDetectParserConfig>
35
+ </properties>
local-test-tika-delta-05/afc-tika/tika-core/src/test/resources/org/apache/tika/config/TIKA-3865-params.xml ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8" ?>
2
+ <!--
3
+ Licensed to the Apache Software Foundation (ASF) under one
4
+ or more contributor license agreements. See the NOTICE file
5
+ distributed with this work for additional information
6
+ regarding copyright ownership. The ASF licenses this file
7
+ to you under the Apache License, Version 2.0 (the
8
+ "License"); you may not use this file except in compliance
9
+ with the License. You may obtain a copy of the License at
10
+
11
+ http://www.apache.org/licenses/LICENSE-2.0
12
+
13
+ Unless required by applicable law or agreed to in writing,
14
+ software distributed under the License is distributed on an
15
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16
+ KIND, either express or implied. See the License for the
17
+ specific language governing permissions and limitations
18
+ under the License.
19
+ -->
20
+ <properties>
21
+ <async>
22
+ <params>
23
+ <maxForEmitBatchBytes>10000</maxForEmitBatchBytes>
24
+ <emitMaxEstimatedBytes>100000</emitMaxEstimatedBytes>
25
+ <emitWithinMillis>60000</emitWithinMillis>
26
+ <numEmitters>1</numEmitters>
27
+ </params>
28
+ <pipesReporter class="org.apache.tika.pipes.CompositePipesReporter">
29
+ <pipesReporter class="org.apache.tika.pipes.async.MockReporter">
30
+ <params>
31
+ <endpoint>somethingOrOther1</endpoint>
32
+ </params>
33
+ </pipesReporter>
34
+ <pipesReporter class="org.apache.tika.pipes.async.MockReporter">
35
+ <params>
36
+ <endpoint>somethingOrOther2</endpoint>
37
+ </params>
38
+ </pipesReporter>
39
+ </pipesReporter>
40
+ </async>
41
+ </properties>
local-test-tika-delta-05/afc-tika/tika-core/src/test/resources/org/apache/tika/config/TIKA-4207-embedded-bytes-config.xml ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!--
3
+ Licensed to the Apache Software Foundation (ASF) under one or more
4
+ contributor license agreements. See the NOTICE file distributed with
5
+ this work for additional information regarding copyright ownership.
6
+ The ASF licenses this file to You under the Apache License, Version 2.0
7
+ (the "License"); you may not use this file except in compliance with
8
+ the License. You may obtain a copy of the License at
9
+
10
+ http://www.apache.org/licenses/LICENSE-2.0
11
+
12
+ Unless required by applicable law or agreed to in writing, software
13
+ distributed under the License is distributed on an "AS IS" BASIS,
14
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ See the License for the specific language governing permissions and
16
+ limitations under the License.
17
+ -->
18
+ <properties>
19
+ <parsers>
20
+ <parser class="org.apache.tika.parser.DefaultParser"/>
21
+ </parsers>
22
+ <autoDetectParserConfig>
23
+ <spoolToDisk>123450</spoolToDisk>
24
+ <outputThreshold>678900</outputThreshold>
25
+ <embeddedDocumentExtractorFactory class="org.apache.tika.extractor.RUnpackExtractorFactory">
26
+ <writeFileNameToContent>false</writeFileNameToContent>
27
+ <embeddedBytesIncludeMimeTypes>
28
+ <mime>application/pdf</mime>
29
+ <mime>application/rtf</mime>
30
+ <mime>text/plain</mime>
31
+ </embeddedBytesIncludeMimeTypes>
32
+ <embeddedBytesIncludeEmbeddedResourceTypes>
33
+ <type>ATTACHMENT</type>
34
+ <type>INLINE</type>
35
+ </embeddedBytesIncludeEmbeddedResourceTypes>
36
+ </embeddedDocumentExtractorFactory>
37
+ </autoDetectParserConfig>
38
+ </properties>
local-test-tika-delta-05/afc-tika/tika-core/src/test/resources/org/apache/tika/config/mockConfig.xml ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!--
3
+ Licensed to the Apache Software Foundation (ASF) under one or more
4
+ contributor license agreements. See the NOTICE file distributed with
5
+ this work for additional information regarding copyright ownership.
6
+ The ASF licenses this file to You under the Apache License, Version 2.0
7
+ (the "License"); you may not use this file except in compliance with
8
+ the License. You may obtain a copy of the License at
9
+
10
+ http://www.apache.org/licenses/LICENSE-2.0
11
+
12
+ Unless required by applicable law or agreed to in writing, software
13
+ distributed under the License is distributed on an "AS IS" BASIS,
14
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ See the License for the specific language governing permissions and
16
+ limitations under the License.
17
+ -->
18
+ <properties>
19
+
20
+ <mockConfig>
21
+ <params>
22
+ <myString>hello-world</myString>
23
+ <myStrings>
24
+ <val>one</val>
25
+ <val>two</val>
26
+ </myStrings>
27
+ <mappings>
28
+ <entry from="from1" to="to1"/>
29
+ <entry from="from2" to="to2"/>
30
+ </mappings>
31
+ <myDouble>3.14259</myDouble>
32
+ <myInt>2</myInt>
33
+ </params>
34
+ </mockConfig>
35
+ </properties>
local-test-tika-delta-05/afc-tika/tika-core/src/test/resources/org/apache/tika/mime/custom-mimetypes-badMinShouldMatch3.xml ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!--
3
+ Licensed to the Apache Software Foundation (ASF) under one or more
4
+ contributor license agreements. See the NOTICE file distributed with
5
+ this work for additional information regarding copyright ownership.
6
+ The ASF licenses this file to You under the Apache License, Version 2.0
7
+ (the "License"); you may not use this file except in compliance with
8
+ the License. You may obtain a copy of the License at
9
+
10
+ http://www.apache.org/licenses/LICENSE-2.0
11
+
12
+ Unless required by applicable law or agreed to in writing, software
13
+ distributed under the License is distributed on an "AS IS" BASIS,
14
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ See the License for the specific language governing permissions and
16
+ limitations under the License.
17
+ -->
18
+ <!--
19
+ Description: This test XML file is used to test minShouldMatch
20
+ -->
21
+ <mime-info>
22
+
23
+
24
+ <mime-type type="hello/world-min-file">
25
+ <_comment>A "Hello World MinShouldMatch" file</_comment>
26
+ <magic priority="50">
27
+ <match minShouldMatch="needsToBeAnInteger!">
28
+ <match value="Hello" type="string" offset="0:20" />
29
+ <match value="Hallow" type="string" offset="0:20" />
30
+ <match value="World!" type="string" offset="0:20" />
31
+ <match value="Welt!" type="string" offset="0:20" />
32
+ </match>
33
+ </magic>
34
+ </mime-type>
35
+
36
+
37
+ </mime-info>
local-test-tika-delta-05/afc-tika/tika-core/src/test/resources/org/apache/tika/mime/test-difficult-rdf1.xml ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version='1.0' encoding='ISO-8859-1'?>
2
+
3
+ <!DOCTYPE uridef[
4
+ <!ENTITY rdf "http://www.w3.org/1999/02/22-rdf-syntax-ns">
5
+ <!ENTITY shadow-rdf "http://www.daml.org/services/owl-s/1.2/generic/ObjectList.owl">
6
+ <!ENTITY expr "http://www.daml.org/services/owl-s/1.2/generic/Expression.owl">
7
+ <!ENTITY rdfs "http://www.w3.org/2000/01/rdf-schema">
8
+ <!ENTITY owl "http://www.w3.org/2002/07/owl">
9
+ <!ENTITY xsd "http://www.w3.org/2001/XMLSchema">
10
+ <!ENTITY time "http://www.isi.edu/~hobbs/damltime/time-entry.owl">
11
+ <!ENTITY swrl "http://www.w3.org/2003/11/swrl">
12
+ <!ENTITY service "http://www.daml.org/services/owl-s/1.2/Service.owl">
13
+ <!ENTITY grounding "http://www.daml.org/services/owl-s/1.2/Grounding.owl">
14
+ <!ENTITY process "http://www.daml.org/services/owl-s/1.2/Process.owl">
15
+ <!ENTITY DEFAULT "http://www.daml.org/services/owl-s/1.2/Process.owl">
16
+ ]>
17
+
18
+
19
+ <rdf:RDF
20
+ xmlns:rdf= "&rdf;#"
21
+ xmlns:shadow-rdf= "&shadow-rdf;#"
22
+ xmlns:expr= "&expr;#"
23
+ xmlns:rdfs= "&rdfs;#"
24
+ xmlns:owl= "&owl;#"
25
+ xmlns:swrl= "&swrl;#"
26
+ xmlns:xsd= "&xsd;#"
27
+ xmlns:service= "&service;#"
28
+ xmlns:process= "&process;#"
29
+ xmlns:grounding= "&grounding;#"
30
+ xmlns= "&DEFAULT;#"
31
+ xml:base="&process;">
32
+
33
+ <!--
34
+ TIKA-309: Mime type application/rdf+xml not correctly detected
35
+ Simplified test case based on the OWL document at
36
+ http://www.ai.sri.com/daml/services/owl-s/1.2/Process.owl
37
+ -->
38
+
39
+ </rdf:RDF>
local-test-tika-delta-05/afc-tika/tika-core/src/test/resources/org/apache/tika/mime/test-tika-327.html ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="iso-8859-1"?><link href="http://www.apache.org" rel="stylesheet" type="text/css" />
2
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
3
+ <title>title</title>
4
+ <meta name="description" content="content" />
5
+ <meta name="keywords" content="keys" />
6
+ <script language="JavaScript" type="text/javascript">
7
+ <!--
8
+ function hello() {
9
+ }
10
+ //-->
11
+
12
+
13
+ </script>
14
+
15
+ <!-- IE fix -->
16
+ <style type="text/css">form { display: inline }</style>
17
+ <!--
18
+ comment
19
+ -->
20
+ </head>
21
+
22
+ <body>
23
+ <table>
24
+ <tr>
25
+ <td>
26
+ <table>
27
+ <tr>
28
+ <td><font class="title"><!--comment--><a href="index.php">image</a></font></td>
29
+ <td> <table>
30
+ <tr>
31
+ <td>
32
+ </td>
33
+ </tr>
34
+ </table></td>
35
+
36
+
37
+
38
+ </tr>
39
+ <tr>
40
+ <td>
41
+ <span class="class">Home </span> </span>
42
+ </td>
43
+ <td>
44
+ July 2, 2013 </td>
45
+ </tr>
46
+ </table></td>
47
+ </tr>
48
+ </table>
49
+ end of table
50
+ </body>
local-test-tika-delta-05/afc-tika/tika-core/src/test/resources/org/apache/tika/mime/test.xls ADDED
Binary file (13.8 kB). View file