FileNameMap interface in java

java.net.FileNameMap

A simple interface that provides a mechanism to map between a file name and a MIME-type string.

Declaration

public interface FileNameMap {

    public String getContentTypeFor(String fileName);
}

Methods

1. getContentTypeFor(String fileName)

String java.net.FileNameMap.getContentTypeFor(String fileName)

This method takes one argument. This method gets the MIME type for the specified file name.

Parameters: One parameter is required for this method.

fileName: the specified file name.

Returns: a String indicating the MIME type for the specified file name.

No comments:

Post a Comment