public class AnimationObjectsReader
extends java.lang.Object
AnimationObjects
from files.Modifier and Type | Method and Description |
---|---|
static void |
loadAnimations(AnimationObjects animationObjects,
ErrorViewCollector errorViewCollector,
java.io.Reader reader,
java.lang.String startKey,
boolean ignoreOtherText,
java.lang.String path,
java.util.Map<java.lang.String,java.lang.String> animations)
Loads any number of animations from a reader.
|
static void |
loadAnimations(AnimationObjects animationObjects,
ErrorViewCollector errorViewCollector,
java.lang.String path,
java.io.File animFile,
java.lang.String startKey,
boolean ignoreOtherText)
Loads animations from a file.
|
public static void loadAnimations(@NotNull AnimationObjects animationObjects, @NotNull ErrorViewCollector errorViewCollector, @NotNull java.lang.String path, @NotNull java.io.File animFile, @NotNull java.lang.String startKey, boolean ignoreOtherText) throws java.io.IOException, AnimationParseException
animationObjects
- the animation objects to updateerrorViewCollector
- the error view collector for reporting errorspath
- the animation pathanimFile
- file to load animations fromstartKey
- the key that begins an animation block; it must end with
a space characterignoreOtherText
- if set, ignore all text outside animation
definitionsjava.io.IOException
- in case of I/O errorsjava.io.FileNotFoundException
- in case the file couldn't be
openedAnimationParseException
- in case parsing the animation reveals
errorspublic static void loadAnimations(@NotNull AnimationObjects animationObjects, @NotNull ErrorViewCollector errorViewCollector, java.io.Reader reader, @NotNull java.lang.String startKey, boolean ignoreOtherText, @Nullable java.lang.String path, @Nullable java.util.Map<java.lang.String,java.lang.String> animations) throws AnimationParseException, java.io.IOException
reader
with a BufferedReader if the supplied reader
isn't already a BufferedReader itself.animationObjects
- the animation objects to updateerrorViewCollector
- the error view collector for reporting errorsreader
- the reader to load animations fromstartKey
- the key that begins an animation block; it must end with
a space characterignoreOtherText
- if set, ignore all text outside animation
definitionspath
- the path relative to the arch directory, used to create tree
information; either animations
or this parameter must be
non-null
animations
- maps animation name to animation path; either path
or this parameter must be non-null
AnimationParseException
- in case parsing the animation reveals
errorsjava.io.IOException
- in case of I/O errors