Interface MimeTyped<T,M extends MimeType>

Type Parameters:
T - The type of object that is wrapped.
M - A marker type encoding the MIME type into the Java type system - not used for anything at runtime, but can be useful for enhanced type safety, documentation, extension functions and reflection.
All Known Implementing Classes:
MimeTypedObject, MimeTypedString

public interface MimeTyped<T,M extends MimeType>
Implementations wrap an object (e.g. string, byte array, byte buffer, stream, or any other object) with an associated MIME type. Implementations of this interface may become value types in future releases of Java.
  • Method Summary

    Modifier and Type
    Method
    Description
    The wrapped content.
    The MIME type.
  • Method Details

    • content

      T content()
      The wrapped content.
    • mimeType

      String mimeType()
      The MIME type.