org.apache.tika.parser.microsoft
Class POIFSContainerDetector

java.lang.Object
  extended by org.apache.tika.parser.microsoft.POIFSContainerDetector
All Implemented Interfaces:
Serializable, org.apache.tika.detect.Detector

public class POIFSContainerDetector
extends Object
implements org.apache.tika.detect.Detector

A detector that works on a POIFS OLE2 document to figure out exactly what the file is. This should work for all OLE2 documents, whether they are ones supported by POI or not.

See Also:
Serialized Form

Field Summary
static org.apache.tika.mime.MediaType DOC
          Microsoft Word
static org.apache.tika.mime.MediaType MSG
          Microsoft Outlook
static org.apache.tika.mime.MediaType OLE
          The OLE base file format
static org.apache.tika.mime.MediaType PPT
          Microsoft PowerPoint
static org.apache.tika.mime.MediaType PUB
          Microsoft Publisher
static org.apache.tika.mime.MediaType VSD
          Microsoft Visio
static org.apache.tika.mime.MediaType WPS
          Microsoft Works
static org.apache.tika.mime.MediaType XLS
          Microsoft Excel
 
Constructor Summary
POIFSContainerDetector()
           
 
Method Summary
 org.apache.tika.mime.MediaType detect(InputStream input, org.apache.tika.metadata.Metadata metadata)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OLE

public static final org.apache.tika.mime.MediaType OLE
The OLE base file format


XLS

public static final org.apache.tika.mime.MediaType XLS
Microsoft Excel


DOC

public static final org.apache.tika.mime.MediaType DOC
Microsoft Word


PPT

public static final org.apache.tika.mime.MediaType PPT
Microsoft PowerPoint


PUB

public static final org.apache.tika.mime.MediaType PUB
Microsoft Publisher


VSD

public static final org.apache.tika.mime.MediaType VSD
Microsoft Visio


WPS

public static final org.apache.tika.mime.MediaType WPS
Microsoft Works


MSG

public static final org.apache.tika.mime.MediaType MSG
Microsoft Outlook

Constructor Detail

POIFSContainerDetector

public POIFSContainerDetector()
Method Detail

detect

public org.apache.tika.mime.MediaType detect(InputStream input,
                                             org.apache.tika.metadata.Metadata metadata)
                                      throws IOException
Specified by:
detect in interface org.apache.tika.detect.Detector
Throws:
IOException


Copyright © 2007-2011 The Apache Software Foundation. All Rights Reserved.