Skip to content

Latest commit

 

History

History
12 lines (9 loc) · 484 Bytes

README.md

File metadata and controls

12 lines (9 loc) · 484 Bytes

This small Java library contains a set of enumerations for various mime-types and the respective file extension. The MimeType can be determined by passing in a file extension.

Small example:

        String applicationZip = "application/zip";
        String zipExtension = ".zip";

        assertEquals(MimeType.APPLICATION_ZIP_ZIP, MimeType.fromType(applicationZip));

        assertEquals(MimeType.APPLICATION_ZIP_ZIP, MimeType.fromExtension(zipExtension));