|
Rings Version 0.3 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectthreeD.io.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 |
RAWEncoding
The integer code for a RAW encoding. |
static int |
XMLEncoding
The integer code for an XML encoding. |
| Constructor Summary | |
FileDecoder()
|
|
| Method Summary | |
static Scene |
decodeScene(java.io.InputStream fileIn,
int encoding,
boolean ui,
java.beans.ExceptionListener listener)
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(java.io.File file,
int encoding,
boolean ui,
java.beans.ExceptionListener listener)
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(java.io.File file,
int encoding,
boolean ui,
java.beans.ExceptionListener listener)
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(java.lang.String s)
Parses a series of double values separated by spaces and returnes an array containing the values. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int XMLEncoding
public static final int RAWEncoding
public static final int GTSEncoding
| Constructor Detail |
public FileDecoder()
| Method Detail |
public static Scene decodeSceneFile(java.io.File file,
int encoding,
boolean ui,
java.beans.ExceptionListener listener)
throws java.io.IOException,
java.io.FileNotFoundException
java.io.IOException - If an IO error occurs.
java.io.FileNotFoundException - If the file is not found.
public static Scene decodeScene(java.io.InputStream fileIn,
int encoding,
boolean ui,
java.beans.ExceptionListener listener)
throws java.io.IOException
java.io.IOException
public static Surface decodeSurfaceFile(java.io.File file,
int encoding,
boolean ui,
java.beans.ExceptionListener listener)
throws java.io.IOException,
java.io.FileNotFoundException
java.io.IOException - If an IO error occurs.
java.io.FileNotFoundException - If the file is not found.public static double[] parseDoubles(java.lang.String s)
java.lang.NumberFormatException - If a number is not correctly formatted.
|
Rings Version 0.3 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||