Author: jukka
Date: Tue Jan 20 13:12:35 2009
New Revision: 736107
URL: http://svn.apache.org/viewvc?rev=736107&view=rev
Log:
TIKA-95: Pluggable magic header detectors
Actually, let's start using the new MediaType class instead of MimeType, as
that would allow us to simplify the type handling code as well as the type
detection code.
Modified:
lucene/tika/trunk/src/main/java/org/apache/tika/detect/Detector.java
Modified: lucene/tika/trunk/src/main/java/org/apache/tika/detect/Detector.java
URL:
http://svn.apache.org/viewvc/lucene/tika/trunk/src/main/java/org/apache/tika/detect/Detector.java?rev=736107&r1=736106&r2=736107&view=diff
==============================================================================
--- lucene/tika/trunk/src/main/java/org/apache/tika/detect/Detector.java
(original)
+++ lucene/tika/trunk/src/main/java/org/apache/tika/detect/Detector.java Tue
Jan 20 13:12:35 2009
@@ -20,7 +20,7 @@
import java.io.InputStream;
import org.apache.tika.metadata.Metadata;
-import org.apache.tika.mime.MimeType;
+import org.apache.tika.mime.MediaType;
/**
* Content type detector. Implementations of this interface use various
@@ -54,6 +54,6 @@
* @return detected media type, or <code>application/octet-stream</code>
* @throws IOException if the document input stream could not be read
*/
- MimeType detect(InputStream input, Metadata metadata) throws IOException;
+ MediaType detect(InputStream input, Metadata metadata) throws IOException;
}