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)
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 |
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
MimeDetector
public MimeDetector()
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.
Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.