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 Detail

      • getMediaType

        @Nonnull
        String getMediaType()
        Returns:
        The media type, also known as the MIME type, such as application/pdf or text/plain; charset=utf-8.
      • getMediaTypeWithoutParameters

        @Nonnull
        String getMediaTypeWithoutParameters()
        Returns:
        The media type without parameters such as text/plain (and NOT text/plain; charset=utf-8).
      • getCharset

        @Nullable
        Charset getCharset()
        Returns:
        For text/plain files, this may contain the guessed charset of the text file.