public class ResourceDecoder extends Object implements ImageObserver
ResourceLoader
,
ResourceManager
Modifier and Type | Field and Description |
---|---|
private static boolean |
imageLoaded |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
Constructor and Description |
---|
ResourceDecoder()
Construct a new
ResourceDecoder . |
Modifier and Type | Method and Description |
---|---|
AudioClip |
decodeAudioClip(InputStream stream)
Decode an audio clip from an input stream.
|
Config |
decodeConfig(InputStream stream)
Decode a configuration from an input stream.
|
Image |
decodeImage(InputStream stream)
Decode an image from an input stream.
|
Properties |
decodeProperties(InputStream stream)
Decode a properties list from an input stream.
|
String |
decodeString(InputStream stream)
Decode a string from an input stream.
|
boolean |
imageUpdate(Image img,
int infoflags,
int x,
int y,
int w,
int h)
Image tracker method.
|
private static boolean imageLoaded
public ResourceDecoder()
ResourceDecoder
.public String decodeString(InputStream stream) throws IOException
String
object from all of the data read from an input stream.stream
- The input stream.String
object.IOException
- If an error occurred while reading from the
stream.public AudioClip decodeAudioClip(InputStream stream) throws IOException
AudioClip
object from all of the data read from an input
stream.stream
- The input stream.AudioCip
object.IOException
- If an error occurred while reading from the
stream.public Image decodeImage(InputStream stream) throws IOException
Image
object from all of the data read from an input stream.stream
- The input stream.Image
object.IOException
- If an error occurred while reading from the
stream.public Properties decodeProperties(InputStream stream) throws IOException
Properties
object from all of the data read from an input
stream.stream
- The input stream.Properties
object.IOException
- If an error occurred while reading from the
stream.public Config decodeConfig(InputStream stream) throws IOException
Config
object from all of the data read from an input
stream.stream
- The input stream.Config
object.IOException
- If an error occurred while reading from the
stream.public boolean imageUpdate(Image img, int infoflags, int x, int y, int w, int h)
imageUpdate
in interface ImageObserver
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses