public static final class CompositeMetadata.WellKnownMimeTypeEntry extends Object implements CompositeMetadata.Entry
CompositeMetadata.Entry backed by a WellKnownMimeType.| Constructor and Description |
|---|
WellKnownMimeTypeEntry(ByteBuf content,
WellKnownMimeType type) |
| Modifier and Type | Method and Description |
|---|---|
ByteBuf |
getContent()
Returns the un-decoded content of the
CompositeMetadata.Entry. |
String |
getMimeType()
Returns the MIME type of the entry, if it can be decoded.
|
WellKnownMimeType |
getType()
Returns the
WellKnownMimeType for this entry. |
public WellKnownMimeTypeEntry(ByteBuf content, WellKnownMimeType type)
public ByteBuf getContent()
CompositeMetadata.EntryCompositeMetadata.Entry.getContent in interface CompositeMetadata.EntryCompositeMetadata.Entrypublic String getMimeType()
CompositeMetadata.EntrygetMimeType in interface CompositeMetadata.Entrynull.public WellKnownMimeType getType()
WellKnownMimeType for this entry.WellKnownMimeType for this entry