|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectlegacy.resource.Codec
legacy.resource.codecs.image.ImageIOCodec
public abstract class ImageIOCodec
ImageIOCodec.class
| Field Summary |
|---|
| Fields inherited from class legacy.resource.Codec |
|---|
FONT_TYPE, IMAGE_TYPE, MIDI_TYPE, PALLET_TYPE, SOUND_TYPE |
| Constructor Summary | |
|---|---|
ImageIOCodec()
|
|
| Method Summary | |
|---|---|
java.io.InputStream |
decodeNative(java.io.InputStream in)
decodeNative returns the native version of the resource from a given inputStream |
void |
encodeNative(java.io.OutputStream out,
java.lang.Class format,
java.lang.Object src)
encodeNative writes to a given output stream from native version of the resource |
abstract java.lang.String |
getExtension()
getExtension returns an extension of a known ImageIO type |
java.lang.Object |
getType()
getType returns the known ImageIO type in this case Codec.IMAGE_TYPE. |
boolean |
isDecodable()
isDecodable returns true as allowed ImageIO types are decodeble. |
boolean |
isEncodeable()
isEncodable returns true as allowed ImageIO types are encodeble. |
boolean |
validate(java.lang.String resource)
validate checks if the resource is comaptible with ImageIO and this codec |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ImageIOCodec()
| Method Detail |
|---|
public final boolean validate(java.lang.String resource)
validate in class Codecresource - file to test
public final boolean isDecodable()
isDecodable in class Codec
public final java.io.InputStream decodeNative(java.io.InputStream in)
throws java.io.IOException
decodeNative in class Codecin - input to transcode if needed
java.io.IOException - if an unforseen issue reading a file has occouredpublic final boolean isEncodeable()
isEncodeable in class Codec
public final void encodeNative(java.io.OutputStream out,
java.lang.Class format,
java.lang.Object src)
throws java.io.IOException
encodeNative in class Codecout - the outputformat - the file format to encode fromsrc - the Object it self
java.io.IOException - if an unforseen issue reading a file has occouredpublic final java.lang.Object getType()
getType in class Codecpublic abstract java.lang.String getExtension()
getExtension in class Codec
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||