Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.any23.cli
Class MimeDetector

    java.lang.Object
      org.apache.any23.cli.MimeDetector

All Implemented Interfaces:
  Tool

    public class MimeDetector

extends Object
implements Tool

Commandline tool to detect MIME Types from file, HTTP and direct input sources. The implementation of this tool is based on `TikaMIMETypeDetector`.

Author:
  Michele Mostarda (mostarda@fbk.eu)

Field Summary
`static String` | `FILE_DOCUMENT_PREFIX`
`static String` | `INLINE_DOCUMENT_PREFIX`
`static String` | `URL_DOCUMENT_RE`

Constructor Summary
`MimeDetector()`

Method Summary
`static void` | `main(String[] args)`
`int` | `run(String[] args)` Runs the tool and retrieves the exit code.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### FILE_DOCUMENT_PREFIX

    public static final String FILE_DOCUMENT_PREFIX

See Also:
  Constant Field Values

### INLINE_DOCUMENT_PREFIX

    public static final String INLINE_DOCUMENT_PREFIX

See Also:
  Constant Field Values

### URL_DOCUMENT_RE

    public static final String URL_DOCUMENT_RE

See Also:
  Constant Field Values

Constructor Detail

### MimeDetector

    public MimeDetector()

Method Detail

### main

    public static void main(String[] args)

### run

    public int run(String[] args)

  Description copied from interface: `Tool`
  Runs the tool and retrieves the exit code.

  Specified by:
    `run` in interface `Tool`
  Parameters:
    `args` - command line arguments.
  Returns:
    exit code.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.