Class GuessedContentType
- java.lang.Object
-
- de.xima.fc.workflow.processor.model.GuessedContentType
-
- All Implemented Interfaces:
IGuessedContentType
public final class GuessedContentType extends Object implements IGuessedContentType
-
-
Constructor Summary
Constructors Constructor Description GuessedContentType(String mediaType, Charset charset)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Charset
getCharset()
String
getMediaType()
String
getMediaTypeWithoutParameters()
String
toString()
-
-
-
Method Detail
-
getMediaType
public String getMediaType()
- Specified by:
getMediaType
in interfaceIGuessedContentType
- Returns:
- The media type, also known as the MIME type, such as
application/pdf
ortext/plain; charset=utf-8
.
-
getMediaTypeWithoutParameters
public String getMediaTypeWithoutParameters()
- Specified by:
getMediaTypeWithoutParameters
in interfaceIGuessedContentType
- Returns:
- The media type without parameters such as
text/plain
(and NOTtext/plain; charset=utf-8
).
-
getCharset
public Charset getCharset()
- Specified by:
getCharset
in interfaceIGuessedContentType
- Returns:
- For
text/plain
files, this may contain the guessed charset of the text file.
-
-