|
||||||||||
PREV CLASS NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.media.format.EmbeddedMediaFormat (src)
org.jboss.media.format.image.iio.IIOMediaFormat
Implementation of the MediaFormat
interface based on the Java
Image I/O API to be used on embedded media.
Field Summary | |
protected javax.imageio.ImageReader |
imageReader
|
Constructor Summary | |
IIOMediaFormat(javax.imageio.ImageReader imageReader)
Constructor. |
Method Summary | |
abstract MediaHeader (src) |
extractHeader(java.io.InputStream content)
Extracts a media header instance from the given media content and returns it. |
protected javax.imageio.metadata.IIOMetadata |
extractImageMetadata(java.io.InputStream content)
|
java.lang.String |
getDefaultMimeType()
Returns the default MIME type for the given media format as a String. |
boolean |
isStreamingDesirable()
Returns true if it is always desirable to stream media of
this format, or false otherwise. |
Methods inherited from class org.jboss.media.format.EmbeddedMediaFormat (src) |
assembleContent, disassembleContent, extractProxy, isEmbedded |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected javax.imageio.ImageReader imageReader
Constructor Detail |
public IIOMediaFormat(javax.imageio.ImageReader imageReader)
imageReader
- Method Detail |
public abstract MediaHeader (src) extractHeader(java.io.InputStream content) throws MediaException (src)
MediaFormat (src)
Please note that the given input stream is not closed once the operation is successfully completed.
extractHeader
in interface MediaFormat (src)
extractHeader
in class EmbeddedMediaFormat (src)
MediaException (src)
javax.emb.MediaFormat#extractHeader(javax.emb.Media)
public java.lang.String getDefaultMimeType()
MediaFormat (src)
Media.MIME_TYPE_UNKNOWN
should be returned.
getDefaultMimeType
in interface MediaFormat (src)
getDefaultMimeType
in class EmbeddedMediaFormat (src)
MediaFormat.getDefaultMimeType()
public boolean isStreamingDesirable()
MediaFormat (src)
true
if it is always desirable to stream media of
this format, or false otherwise. For example, it is not always desirable
to stream JPEG or GIF images, even given the possibility to stream them
with a Real player. Servlets can use this information to decide whether
they should try to stream content or transfer it using burst transfer
instead.
isStreamingDesirable
in interface MediaFormat (src)
isStreamingDesirable
in class EmbeddedMediaFormat (src)
MediaFormat.isStreamingDesirable()
protected javax.imageio.metadata.IIOMetadata extractImageMetadata(java.io.InputStream content) throws MediaException (src)
MediaException (src)
|
||||||||||
PREV CLASS NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |