TextureCodec
Contents
[
Hide
]Inheritance: java.lang.Object
public class TextureCodec
Class to manage encoders and decoders for textures.
Constructors
| Constructor | Description |
|---|---|
| TextureCodec() |
Methods
| Method | Description |
|---|---|
| decode(Stream stream, boolean reverseY) | Decode texture data from stream |
| encode(TextureData texture, Stream stream, String format) | Encode texture data into stream using specified format |
| equals(Object arg0) | |
| getClass() | |
| getSupportedEncoderFormats() | Gets all supported encoder formats |
| hashCode() | |
| notify() | |
| notifyAll() | |
| registerCodec(ITextureCodec codec) | Register a set of texture encoders and decoders |
| toString() | |
| wait() | |
| wait(long arg0) | |
| wait(long arg0, int arg1) |
TextureCodec()
public TextureCodec()
decode(Stream stream, boolean reverseY)
public static TextureData decode(Stream stream, boolean reverseY)
Decode texture data from stream
Parameters:
| Parameter | Type | Description |
|---|---|---|
| stream | Stream | |
| reverseY | boolean |
Returns: TextureData
encode(TextureData texture, Stream stream, String format)
public static void encode(TextureData texture, Stream stream, String format)
Encode texture data into stream using specified format
Parameters:
| Parameter | Type | Description |
|---|---|---|
| texture | TextureData | The texture to be encoded |
| stream | Stream | The output stream |
| format | java.lang.String | The image format of encoded data, like png/jpg |
equals(Object arg0)
public boolean equals(Object arg0)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| arg0 | java.lang.Object |
Returns: boolean
getClass()
public final native Class<?> getClass()
Returns: java.lang.Class
getSupportedEncoderFormats()
public static String[] getSupportedEncoderFormats()
Gets all supported encoder formats
Returns: java.lang.String[]
hashCode()
public native int hashCode()
Returns: int
notify()
public final native void notify()
notifyAll()
public final native void notifyAll()
registerCodec(ITextureCodec codec)
public static void registerCodec(ITextureCodec codec)
Register a set of texture encoders and decoders
Parameters:
| Parameter | Type | Description |
|---|---|---|
| codec | ITextureCodec |
toString()
public String toString()
Returns: java.lang.String
wait()
public final void wait()
wait(long arg0)
public final void wait(long arg0)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| arg0 | long | |
| arg1 | int |