Add explicit constructors to the ENVI parser, to allow config dump/load to work
@@ -28,6 +28,7 @@ import java.util.Set;
import org.apache.commons.io.input.CloseShieldInputStream;
import org.apache.tika.config.TikaConfig;
import org.apache.tika.detect.AutoDetectReader;
+import org.apache.tika.detect.EncodingDetector;
import org.apache.tika.exception.TikaException;
import org.apache.tika.metadata.Metadata;
import org.apache.tika.mime.MediaType;
@@ -54,6 +55,13 @@ public class EnviHeaderParser extends AbstractEncodingDetectorParser {
private transient XHTMLContentHandler xhtml;
+ public EnviHeaderParser() {
+ super();
+ }
+ public EnviHeaderParser(EncodingDetector encodingDetector) {
+ super(encodingDetector);
+ }
+
@Override
public Set<MediaType> getSupportedTypes(ParseContext context) {
return SUPPORTED_TYPES;
