- getName
Returns the name (usually filename) of this media, or null if not available.
- getReaderData
Returns the raw data in Reader.Note: it wraps #getStringData with StringReader,
if it is in memory (
- getStreamData
Returns the raw data in InputStream.Note: it wraps #getByteData with
ByteArrayInputStream if it is i
- isBinary
Returns whether the format of this content is binary or text-based. If true, use
#getByteData or #ge
- getByteData
Returns the raw data in byte array.It might not be a copy, so don't modify it directly unless you kn
- getContentType
Returns the content type, e.g., "image/jpeg", or null if not available.
- getStringData
Returns the raw data in string.If the data is not cached in memory ( #inMemory
return false), the da
- inMemory
Returns whether the data is cached in memory (in form of byte[] or String).
- isContentDisposition
Whether to allow Content-Disposition or not when writing the media to response
header. Default: true