org.apache.rat.api
Interface MimeTyper
public interface MimeTyper
Discovers the mime type of content.
Method Summary |
ContentType |
type(java.io.InputStream inputStream,
java.lang.String name)
Guesses the mime type for the given content. |
type
ContentType type(java.io.InputStream inputStream,
java.lang.String name)
throws java.io.IOException
- Guesses the mime type for the given content.
- Parameters:
inputStream
- not nullname
- possibly null
- Returns:
- not null
- Throws:
java.io.IOException
Copyright © 2006-2010 Apache Software Foundation. All Rights Reserved.