net.sf.jmimemagic.detectors
Class TextFileDetector

java.lang.Object
  extended bynet.sf.jmimemagic.detectors.TextFileDetector
All Implemented Interfaces:
MagicDetector

public class TextFileDetector
extends java.lang.Object
implements MagicDetector

DOCUMENT ME!

Version:
$Revision$
Author:
$Author$

Constructor Summary
TextFileDetector()
          Creates a new TextFileDetector object.
 
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!
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextFileDetector

public TextFileDetector()
Creates a new TextFileDetector object.

Method Detail

getDisplayName

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

Specified by:
getDisplayName in interface MagicDetector
Returns:
DOCUMENT ME!

getVersion

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

Specified by:
getVersion in interface MagicDetector
Returns:
DOCUMENT ME!

getHandledExtensions

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

Specified by:
getHandledExtensions in interface MagicDetector
Returns:
DOCUMENT ME!

getHandledTypes

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

Specified by:
getHandledTypes in interface MagicDetector
Returns:
DOCUMENT ME!

getName

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

Specified by:
getName in interface MagicDetector
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!

Specified by:
process in interface MagicDetector
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!

Specified by:
process in interface MagicDetector
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.