| org.zkoss.util.media.Media
All known Subclasses: org.zkoss.util.media.AMedia,
Media | public interface Media (Code) | | Represents any multi-medai, such as a voice, a pdf file, an excel file,
an image and so on.
By implementing this interface, objects can be processed generically
by servlets and many other codes.
author: tomyeh |
Method Summary | |
public byte[] | getByteData() Returns the raw data in byte array. | public String | getContentType() Returns the content type, e.g., "image/jpeg", or null if not available. | public String | getFormat() Returns the format name, e.g., "jpeg", or null if not available. | public String | getName() Returns the name (usually filename) of this media, or null
if not available. | public Reader | getReaderData() Returns the raw data in Reader. | public InputStream | getStreamData() Returns the raw data in InputStream. | public String | getStringData() Returns the raw data in string. | public boolean | inMemory() Returns whether the data is cached in memory (in form of
byte[] or String). | public boolean | isBinary() Returns whether the format of tis content is binary or text-based. |
getContentType | public String getContentType()(Code) | | Returns the content type, e.g., "image/jpeg", or null if not available.
See Also: Media.getFormat |
getName | public String getName()(Code) | | Returns the name (usually filename) of this media, or null
if not available.
|
|
|