public interface MimeTyper
Modifier and Type | Method and Description |
---|---|
ContentType |
type(InputStream inputStream,
String name)
Guesses the mime type for the given content.
|
ContentType type(InputStream inputStream, String name) throws IOException
inputStream
- not nullname
- possibly nullIOException
- in case of I/O errors.Copyright © 2006–2018 Apache Software Foundation. All rights reserved.