|
SMILA (incubation) API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface MimeTypeIdentifier
Service interface to identify a MimeType.
| Method Summary | |
|---|---|
java.lang.String |
identify(Id id,
byte[] data)
Identifies a MimeType based an the given data. |
java.lang.String |
identify(Id id,
byte[] data,
java.lang.String extension)
Identifies a MimeType based an the given data and file extension. |
java.lang.String |
identify(Id id,
java.lang.String extension)
Identifies a MimeType based an the file extension. |
| Method Detail |
|---|
java.lang.String identify(Id id,
byte[] data)
throws MimeTypeParseException
id - the record Iddata - a byte[] containing the data
MimeTypeParseException - if any error occurs
java.lang.String identify(Id id,
java.lang.String extension)
throws MimeTypeParseException
id - the record Idextension - the extension of the filename
MimeTypeParseException - if any error occurs
java.lang.String identify(Id id,
byte[] data,
java.lang.String extension)
throws MimeTypeParseException
id - the record Iddata - a byte[] containing the dataextension - the extension of the filename
MimeTypeParseException - if any error occurs
|
SMILA (incubation) API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||