|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.j3d.threeD.io.FileDecoder
public class FileDecoder
The FileDecoder class provides static methods for decoding scene and surface data that has been stored in a file.
| Field Summary | |
|---|---|
static int |
GTSEncoding
The integer code for a GTS encoding. |
static int |
PLYEncoding
The integer code for a ply encoding. |
static int |
RAWEncoding
The integer code for a RAW encoding. |
static int |
RGBListEncoding
The integer code for a RGB list encoding. |
static int |
XMLEncoding
The integer code for an XML encoding. |
| Constructor Summary | |
|---|---|
FileDecoder()
|
|
| Method Summary | |
|---|---|
static Scene |
decodeScene(InputStream fileIn,
int encoding,
boolean ui,
ExceptionListener listener)
|
static Scene |
decodeScene(InputStream fileIn,
int encoding,
boolean ui,
ExceptionListener listener,
Surface s)
Decodes the scene data read from the specified InputStream object using the encoding specified by the integer encoding code and returnes the new Scene object. |
static Scene |
decodeSceneFile(File file,
int encoding,
boolean ui,
ExceptionListener listener)
|
static Scene |
decodeSceneFile(File file,
int encoding,
boolean ui,
ExceptionListener listener,
Surface s)
Decodes the scene data stored in the file represented by the specified File object using the encoding specified by the integer encoding code and returns the new Scene object. |
static Surface |
decodeSurfaceFile(File file,
int encoding,
boolean ui,
ExceptionListener listener)
|
static Surface |
decodeSurfaceFile(File file,
int encoding,
boolean ui,
ExceptionListener listener,
Surface s)
Decodes the surface data stored in the file represented by the specified File object using the encoding specified by the integer encoding code and returns the new Surface object. |
static double[] |
parseDoubles(String s)
Parses a series of double values separated by spaces and returnes an array containing the values. |
static RGB[][] |
readRGBList(InputStream in,
RGB[][] buf)
|
| 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 RAWEncoding
public static final int RGBListEncoding
public static final int GTSEncoding
public static final int PLYEncoding
| Constructor Detail |
|---|
public FileDecoder()
| Method Detail |
|---|
public static Scene decodeSceneFile(File file,
int encoding,
boolean ui,
ExceptionListener listener,
Surface s)
throws IOException,
FileNotFoundException
IOException - If an IO error occurs.
FileNotFoundException - If the file is not found.
public static Scene decodeSceneFile(File file,
int encoding,
boolean ui,
ExceptionListener listener)
throws IOException,
FileNotFoundException
IOException
FileNotFoundException
public static Scene decodeScene(InputStream fileIn,
int encoding,
boolean ui,
ExceptionListener listener)
throws IOException
IOException
public static Scene decodeScene(InputStream fileIn,
int encoding,
boolean ui,
ExceptionListener listener,
Surface s)
throws IOException
IOException
public static Surface decodeSurfaceFile(File file,
int encoding,
boolean ui,
ExceptionListener listener)
throws IOException,
FileNotFoundException
IOException
FileNotFoundException
public static Surface decodeSurfaceFile(File file,
int encoding,
boolean ui,
ExceptionListener listener,
Surface s)
throws IOException,
FileNotFoundException
IOException - If an IO error occurs.
FileNotFoundException - If the file is not found.public static double[] parseDoubles(String s)
NumberFormatException - If a number is not correctly formatted.
public static RGB[][] readRGBList(InputStream in,
RGB[][] buf)
throws IOException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||