|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object AnimationUtility
public class AnimationUtility
A helper class that loads animations from a file or saves them to one.
Constructor Summary | |
---|---|
AnimationUtility()
|
Method Summary | |
---|---|
static java.lang.String |
getLastError()
Get the last error that occured while writing |
static java.util.ArrayList<Animation> |
readFile(java.lang.String path)
Read a file, return ArrayList with all animations in the file. |
static void |
writeFile(java.lang.String path,
java.util.ArrayList<Animation> animations)
Write a file with all Animations of an ArrayList |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AnimationUtility()
Method Detail |
---|
public static java.util.ArrayList<Animation> readFile(java.lang.String path) throws java.lang.Exception
path
- Path of file
Excpetion
- When something goes wrong with the Scanner...
java.lang.Exception
public static void writeFile(java.lang.String path, java.util.ArrayList<Animation> animations)
path
- Path to write toanimations
- ArrayList with all animations to be savedgetLastError()
public static java.lang.String getLastError()
writeFile()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |