|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectkiwi.util.ResourceDecoder
A class that decodes various types of resources from input streams. This class is used by resource loaders to read resources from files or network connections. The functionality is provided for its possible use in other contexts.
ResourceLoader
,
ResourceManager
Field Summary | |
private static boolean |
imageLoaded
|
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
ResourceDecoder()
Construct a new ResourceDecoder . |
Method Summary | |
AudioClip |
decodeAudioClip(java.io.InputStream stream)
Decode an audio clip from an input stream. |
Config |
decodeConfig(java.io.InputStream stream)
Decode a configuration from an input stream. |
java.awt.Image |
decodeImage(java.io.InputStream stream)
Decode an image from an input stream. |
java.util.Properties |
decodeProperties(java.io.InputStream stream)
Decode a properties list from an input stream. |
java.lang.String |
decodeString(java.io.InputStream stream)
Decode a string from an input stream. |
boolean |
imageUpdate(java.awt.Image img,
int infoflags,
int x,
int y,
int w,
int h)
Image tracker method. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static boolean imageLoaded
Constructor Detail |
public ResourceDecoder()
ResourceDecoder
.
Method Detail |
public java.lang.String decodeString(java.io.InputStream stream) throws java.io.IOException
String
object from all of the data read from an input stream.
stream
- The input stream.
String
object.
java.io.IOException
- If an error occurred while reading from the
stream.public AudioClip decodeAudioClip(java.io.InputStream stream) throws java.io.IOException
AudioClip
object from all of the data read from an input
stream.
stream
- The input stream.
AudioCip
object.
java.io.IOException
- If an error occurred while reading from the
stream.public java.awt.Image decodeImage(java.io.InputStream stream) throws java.io.IOException
Image
object from all of the data read from an input stream.
stream
- The input stream.
Image
object.
java.io.IOException
- If an error occurred while reading from the
stream.public java.util.Properties decodeProperties(java.io.InputStream stream) throws java.io.IOException
Properties
object from all of the data read from an input
stream.
stream
- The input stream.
Properties
object.
java.io.IOException
- If an error occurred while reading from the
stream.public Config decodeConfig(java.io.InputStream stream) throws java.io.IOException
Config
object from all of the data read from an input
stream.
stream
- The input stream.
Config
object.
java.io.IOException
- If an error occurred while reading from the
stream.public boolean imageUpdate(java.awt.Image img, int infoflags, int x, int y, int w, int h)
imageUpdate
in interface java.awt.image.ImageObserver
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |