|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CpcImageDecoder
CpcImageDecoder instances decode images synchronously and return the result. Operations are synchronised externally so the code need not be MT-Safe. More explicitly, a given instance will not be asked to decode more than one image at once (so it's safe to keep state inside the object itself, you don't need to spawn separate worker or state objects) but will be asked to decode multiple images over the object's lifecycle. Implementing objects are required to have a sane default constructor; this will be used to instantiate them.
Method Summary | |
---|---|
CpcImage |
decode(java.lang.String mimeType,
byte[] wad)
Decode the supplied image data synchronously, returning an image which is ready to use. |
java.lang.String |
getDescription()
Return a user-friendly one-line description of this decoder. |
java.lang.String[] |
getSupportedTypes()
Return the list of MIME types which this decoder can handle. |
Method Detail |
---|
java.lang.String[] getSupportedTypes()
java.lang.String getDescription()
ccs.utils.MsgHelper
before being displayed.
CpcImage decode(java.lang.String mimeType, byte[] wad)
acceptsStream
returns true, this will not
be called.
mimeType
- The apparent MIME type of the image data. You may be able to
tell different (eg. by reading magic from the start of the data).wad
- The input data.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |