public interface MIMETypeDetector
MIME type of
some given raw data.| Modifier and Type | Method and Description |
|---|---|
MIMEType |
guessMIMEType(String fileName,
InputStream input,
MIMEType mimeTypeFromMetadata)
Estimates the
MIME type of the content of input file. |
MIMEType guessMIMEType(String fileName, InputStream input, MIMEType mimeTypeFromMetadata)
MIME type of the content of input file.fileName - name of the file.input - content of the file.mimeTypeFromMetadata - mimetype declared in metadata.null if nothing appropriate found.Copyright © 2010-2014 The Apache Software Foundation. All Rights Reserved.