com.googlecode.fascinator.common
Class MagicMimeTypeIdentifierWrapper

java.lang.Object
  extended by com.googlecode.fascinator.common.MagicMimeTypeIdentifierWrapper
All Implemented Interfaces:
org.semanticdesktop.aperture.mime.identifier.MimeTypeIdentifier

public class MagicMimeTypeIdentifierWrapper
extends java.lang.Object
implements org.semanticdesktop.aperture.mime.identifier.MimeTypeIdentifier

Wraps the Aperture MIME type identifier with provision to add custom types based on extension.

Author:
Oliver Lucido

Constructor Summary
MagicMimeTypeIdentifierWrapper()
           
 
Method Summary
 int getMinArrayLength()
           
 java.lang.String identify(byte[] firstBytes, java.lang.String fileName, org.ontoware.rdf2go.model.node.URI uri)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MagicMimeTypeIdentifierWrapper

public MagicMimeTypeIdentifierWrapper()
Method Detail

getMinArrayLength

public int getMinArrayLength()
Specified by:
getMinArrayLength in interface org.semanticdesktop.aperture.mime.identifier.MimeTypeIdentifier

identify

public java.lang.String identify(byte[] firstBytes,
                                 java.lang.String fileName,
                                 org.ontoware.rdf2go.model.node.URI uri)
Specified by:
identify in interface org.semanticdesktop.aperture.mime.identifier.MimeTypeIdentifier


Copyright © 2009-2013. All Rights Reserved.