You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tika.apache.org by ma...@apache.org on 2013/03/23 06:24:37 UTC

svn commit: r1460100 - /tika/trunk/tika-parsers/src/main/java/org/apache/tika/parser/pkg/CompressorParserOptions.java

Author: mattmann
Date: Sat Mar 23 05:24:37 2013
New Revision: 1460100

URL: http://svn.apache.org/r1460100
Log:
Patch for TIKA-1096 CompressorParser: Add support for handling concatenated InputStreams contributed by Gregory Canan.

Added:
    tika/trunk/tika-parsers/src/main/java/org/apache/tika/parser/pkg/CompressorParserOptions.java

Added: tika/trunk/tika-parsers/src/main/java/org/apache/tika/parser/pkg/CompressorParserOptions.java
URL: http://svn.apache.org/viewvc/tika/trunk/tika-parsers/src/main/java/org/apache/tika/parser/pkg/CompressorParserOptions.java?rev=1460100&view=auto
==============================================================================
--- tika/trunk/tika-parsers/src/main/java/org/apache/tika/parser/pkg/CompressorParserOptions.java (added)
+++ tika/trunk/tika-parsers/src/main/java/org/apache/tika/parser/pkg/CompressorParserOptions.java Sat Mar 23 05:24:37 2013
@@ -0,0 +1,32 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE 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.
+ */
+package org.apache.tika.parser.pkg;
+
+import org.apache.tika.metadata.Metadata;
+
+/**
+ * Interface for setting options for the {@link CompressorParser} by passing
+ * via the {@link ParseContext}.
+ */
+public interface CompressorParserOptions {
+
+    /**
+     * @param metadata document metadata
+     * @return whether to decompress concatenated streams or not
+     */
+    boolean decompressConcatenated(Metadata metadata);
+}