Package java.net
Interface FileNameMap
-
public interface FileNameMapDefines a scheme for mapping a filename type to a MIME content type. Mainly used byURLStreamHandlerfor determining the right content handler to handle the resource.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetContentTypeFor(String filename)Returns the MIME type (such as "text/plain") for the given filename, or null.
-