net.sf.jmimemagic
Interface MagicDetector

All Known Implementing Classes:
TextFileDetector

public interface MagicDetector

DOCUMENT ME!

Version:
$Revision$
Author:
$Author$

Method Summary
 java.lang.String getDisplayName()
          DOCUMENT ME!
 java.lang.String[] getHandledExtensions()
          DOCUMENT ME!
 java.lang.String[] getHandledTypes()
          DOCUMENT ME!
 java.lang.String getName()
          DOCUMENT ME!
 java.lang.String getVersion()
          DOCUMENT ME!
 java.lang.String[] process(byte[] data, int offset, int length, long bitmask, char comparator, java.lang.String mimeType, java.util.Map params)
          DOCUMENT ME!
 java.lang.String[] process(java.io.File file, int offset, int length, long bitmask, char comparator, java.lang.String mimeType, java.util.Map params)
          DOCUMENT ME!
 

Method Detail

getName

public java.lang.String getName()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getDisplayName

public java.lang.String getDisplayName()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getVersion

public java.lang.String getVersion()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getHandledTypes

public java.lang.String[] getHandledTypes()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getHandledExtensions

public java.lang.String[] getHandledExtensions()
DOCUMENT ME!

Returns:
DOCUMENT ME!

process

public java.lang.String[] process(byte[] data,
                                  int offset,
                                  int length,
                                  long bitmask,
                                  char comparator,
                                  java.lang.String mimeType,
                                  java.util.Map params)
DOCUMENT ME!

Parameters:
data - DOCUMENT ME!
offset - DOCUMENT ME!
length - DOCUMENT ME!
bitmask - DOCUMENT ME!
comparator - DOCUMENT ME!
mimeType - DOCUMENT ME!
params - DOCUMENT ME!
Returns:
DOCUMENT ME!

process

public java.lang.String[] process(java.io.File file,
                                  int offset,
                                  int length,
                                  long bitmask,
                                  char comparator,
                                  java.lang.String mimeType,
                                  java.util.Map params)
DOCUMENT ME!

Parameters:
file - DOCUMENT ME!
offset - DOCUMENT ME!
length - DOCUMENT ME!
bitmask - DOCUMENT ME!
comparator - DOCUMENT ME!
mimeType - DOCUMENT ME!
params - DOCUMENT ME!
Returns:
DOCUMENT ME!


Copyright © 2003-2006 none. All Rights Reserved.