|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.j3d.threeD.io.FileEncoder
public class FileEncoder
The FileEncoder class provides static methods for encoding Scene and Surface objects and storing them in local files.
| Field Summary | |
|---|---|
static int |
GTSEncoding
The integer code for a GTS encoding. |
static int |
JPEGEncoding
The integer code for a JPEG image encoding. |
static int |
PIXEncoding
The integer code for a PIX image encoding. |
static int |
PPMEncoding
The integer code for a PPM image encoding. |
static int |
RGBListEncoding
The integer code for an RGB list image encoding. |
static int |
XMLEncoding
The integer code for an XML encoding. |
| Constructor Summary | |
|---|---|
FileEncoder()
|
|
| Method Summary | |
|---|---|
static void |
encodeImageFile(RGB[][] image,
File file,
int encoding)
Encodes the image represented by the specified RGB array using the encoding specified by the integer encoding code and saves the encoded data in the file represented by the specified File object. |
static void |
encodeSceneFile(Scene scene,
File file,
int encoding)
Encodes the specified Scene object using the encoding specified by the integer encoding code and saves the encoded data in the file represented by the specified File object. |
static void |
encodeSurfaceFile(Surface surface,
File file,
int encoding)
Encodes the specified Surface object using the encoding specified by the integer encoding code and saves the encoded data in the file represented by the specified File object. |
static void |
writeImage(RGB[][] image,
OutputStream o,
int encoding)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int XMLEncoding
public static final int GTSEncoding
public static final int PPMEncoding
public static final int PIXEncoding
public static final int JPEGEncoding
public static final int RGBListEncoding
| Constructor Detail |
|---|
public FileEncoder()
| Method Detail |
|---|
public static void encodeSceneFile(Scene scene,
File file,
int encoding)
throws IOException
IOException
public static void encodeSurfaceFile(Surface surface,
File file,
int encoding)
throws IOException
IOException
public static void encodeImageFile(RGB[][] image,
File file,
int encoding)
throws IOException
IOException
public static void writeImage(RGB[][] image,
OutputStream o,
int encoding)
throws IOException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||