Permalink
Browse files

Patch for TIKA-1096 CompressorParser: Add support for handling concat…

…enated InputStreams contributed by Gregory Canan.

git-svn-id: https://svn.apache.org/repos/asf/tika/trunk@1460100 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information...
1 parent d853471 commit 709f60686609257a59a1aa784d5dd9a78738c8e2 @chrismattmann chrismattmann committed Mar 23, 2013
Showing with 32 additions and 0 deletions.
  1. +32 −0 tika-parsers/src/main/java/org/apache/tika/parser/pkg/CompressorParserOptions.java
@@ -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);
+}

0 comments on commit 709f606

Please sign in to comment.