# Class: com.pnfsoftware.jeb.util.encoding.MimeType

A collection of common MIME types as well as simple utility methods to determine MIME type from content bytes.

## Constructor: MimeType


## Static Field: APPLICATION_7Z
Type: `java.lang.String`

Constant value: `application/x-7z-compressed`
Description: 7\-Zip archive MIME type.

## Static Field: APPLICATION_JSON
Type: `java.lang.String`

Constant value: `application/json`
Description: JSON document MIME type.

## Static Field: APPLICATION_OCTETSTREAM
Type: `java.lang.String`

Constant value: `application/octet-stream`
Description: Generic binary stream MIME type.

## Static Field: APPLICATION_TAR
Type: `java.lang.String`

Constant value: `application/x-tar`
Description: TAR archive MIME type.

## Static Field: APPLICATION_XML
Type: `java.lang.String`

Constant value: `application/xml`
Description: XML document MIME type.

## Static Field: APPLICATION_ZIP
Type: `java.lang.String`

Constant value: `application/zip`
Description: Zip archive MIME type.

## Static Field: AUDIO_WAV
Type: `java.lang.String`

Constant value: `audio/vnd.wave`
Description: WAV audio MIME type.

## Static Field: IMAGE_BMP
Type: `java.lang.String`

Constant value: `image/BMP`
Description: Bitmap image MIME type.

## Static Field: IMAGE_CRW
Type: `java.lang.String`

Constant value: `image/x-canon-crw`
Description: Canon raw image MIME type.

## Static Field: IMAGE_GIF
Type: `java.lang.String`

Constant value: `image/gif`
Description: GIF image MIME type.

## Static Field: IMAGE_ICO
Type: `java.lang.String`

Constant value: `image/vnd.microsoft.icon`
Description: Microsoft icon image MIME type.

## Static Field: IMAGE_JPEG
Type: `java.lang.String`

Constant value: `image/jpeg`
Description: JPEG image MIME type.

## Static Field: IMAGE_PNG
Type: `java.lang.String`

Constant value: `image/png`
Description: PNG image MIME type.

## Static Field: IMAGE_PSD
Type: `java.lang.String`

Constant value: `image/vnd.adobe.photoshop`
Description: Adobe Photoshop image MIME type.

## Static Field: IMAGE_TIFF
Type: `java.lang.String`

Constant value: `image/tiff`
Description: TIFF image MIME type.

## Static Field: IMAGE_WEBP
Type: `java.lang.String`

Constant value: `image/webp`
Description: WebP image MIME type.

## Static Field: TEXT_HTML
Type: `java.lang.String`

Constant value: `text/html`
Description: HTML document MIME type.

## Static Field: TEXT_PLAIN
Type: `java.lang.String`

Constant value: `text/plain`
Description: Plain\-text MIME type.

## Static Method: determineFromContent
- parameter: `input`, type: `com.pnfsoftware.jeb.core.input.IInput`
- return type: `java.lang.String`

Description: Determine a MIME type from the header bytes and name of an input object.
parameter: input: input object
return: detected MIME type, or [#APPLICATION_OCTETSTREAM](#APPLICATION_OCTETSTREAM) when unknown

## Static Method: determineFromContent
- parameter: `data`, type: `byte[]`
- return type: `java.lang.String`

Description: Determine a MIME type from content bytes.
parameter: data: content header or full content bytes
return: detected MIME type, or [#APPLICATION_OCTETSTREAM](#APPLICATION_OCTETSTREAM) when unknown

## Static Method: determineFromContent
- parameter: `data`, type: `byte[]`
- parameter: `name`, type: `java.lang.String`
- return type: `java.lang.String`

Description: Determine a MIME type from content bytes and an optional file name.
parameter: data: content header or full content bytes
parameter: name: optional file name used to disambiguate some signatures
return: detected MIME type, or [#APPLICATION_OCTETSTREAM](#APPLICATION_OCTETSTREAM) when unknown

