Interface IGuessedContentType
-
- All Known Implementing Classes:
GuessedContentType
public interface IGuessedContentType
Represents the guessed content type of a file or data stream.- Author:
- XIMA MEDIA GmbH
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Charset
getCharset()
String
getMediaType()
String
getMediaTypeWithoutParameters()
-
-
-
Method Detail
-
getMediaType
@Nonnull String getMediaType()
- Returns:
- The media type, also known as the MIME type, such as
application/pdf
ortext/plain; charset=utf-8
.
-
getMediaTypeWithoutParameters
@Nonnull String getMediaTypeWithoutParameters()
- Returns:
- The media type without parameters such as
text/plain
(and NOTtext/plain; charset=utf-8
).
-
getCharset
@Nullable Charset getCharset()
- Returns:
- For
text/plain
files, this may contain the guessed charset of the text file.
-
-