For more on the format of the metadata, see the Stream Data MIME Types extension specification.
| Modifier and Type | Field and Description |
|---|---|
| private static final int | |
| private static final byte |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static List | |
| public static ByteBuf | Returns: the resulting bufferthe allocator to create the buffer with allocator, WellKnownMimeType well-known MIME type to encode mimeType)Encode a |
| public static ByteBuf | Returns: the resulting bufferthe allocator to create the buffer with allocator, String MIME type to encode mimeType)Encode the given MIME type into a newly allocated |
| public static ByteBuf | Returns: the resulting bufferthe allocator to create the buffer with allocator, List<String> MIME types to encode mimeTypes)Encode multiple MIME types into a newly allocated |
| private static ByteBuf |
| STREAM_METADATA_KNOWN_MASK | back to summary |
|---|---|
| private static final int STREAM_METADATA_KNOWN_MASK | |
| STREAM_METADATA_LENGTH_MASK | back to summary |
|---|---|
| private static final byte STREAM_METADATA_LENGTH_MASK | |
| MimeTypeMetadataCodec | back to summary |
|---|---|
| private MimeTypeMetadataCodec() | |
| decode | back to summary |
|---|---|
| public static List Decode the per-stream MIME type metadata encoded in the given | |
| encode | back to summary |
|---|---|
| public static ByteBuf encode(ByteBufAllocator allocator, WellKnownMimeType mimeType) Encode a
| |
| encode | back to summary |
|---|---|
| public static ByteBuf encode(ByteBufAllocator allocator, String mimeType) Encode the given MIME type into a newly allocated
| |
| encode | back to summary |
|---|---|
| public static ByteBuf encode(ByteBufAllocator allocator, List<String> mimeTypes) Encode multiple MIME types into a newly allocated
| |
| encodeCustomMimeType | back to summary |
|---|---|
| private static ByteBuf encodeCustomMimeType(ByteBufAllocator allocator, String customMimeType) | |