Gridarta Editor
net.sf.gridarta.var.atrinik.model.io.AtrinikAnimationObjectsReader Class Reference

Reads Atrinik AnimationObjects from files. More...

+ Inheritance diagram for net.sf.gridarta.var.atrinik.model.io.AtrinikAnimationObjectsReader:
+ Collaboration diagram for net.sf.gridarta.var.atrinik.model.io.AtrinikAnimationObjectsReader:

Protected Member Functions

int parseLine (@NotNull final String line, final int startLineNumber, @NotNull final BufferedReader in, @NotNull final ErrorViewCollector errorViewCollector)
 Parses a line. More...
 
- Protected Member Functions inherited from net.sf.gridarta.model.io.AbstractAnimationObjectsReader
 AbstractAnimationObjectsReader ()
 Creates a new instance. More...
 

Additional Inherited Members

- Public Member Functions inherited from net.sf.gridarta.model.io.AbstractAnimationObjectsReader
void loadAnimations (@NotNull final AnimationObjects animationObjects, @NotNull final ErrorViewCollector errorViewCollector, @NotNull final String path, @NotNull final File animFile, @NotNull final String startKey) throws IOException, AnimationParseException
 Loads animations from a file. More...
 
void loadAnimations (@NotNull final AnimationObjects animationObjects, @NotNull final ErrorViewCollector errorViewCollector, final Reader reader, @NotNull final String startKey, @Nullable final String path, @Nullable final Map< String, String > animations) throws AnimationParseException, IOException
 Loads any number of animations from a reader. More...
 

Detailed Description

Reads Atrinik AnimationObjects from files.

Author
Andreas Kirschbaum

Definition at line 32 of file AtrinikAnimationObjectsReader.java.

Member Function Documentation

◆ parseLine()

int net.sf.gridarta.var.atrinik.model.io.AtrinikAnimationObjectsReader.parseLine ( @NotNull final String  line,
final int  startLineNumber,
@NotNull final BufferedReader  in,
@NotNull final ErrorViewCollector  errorViewCollector 
)
protected

Parses a line.

Parameters
linethe current line
startLineNumberthe current line number
inthe reader to read from
errorViewCollectorthe error view collector for reporting errors
Returns
the number of processed lines or -1 if the line could not be parsed
Exceptions
AnimationParseExceptionin case parsing the animation reveals errors
IOExceptionin case of I/O errors

Reimplemented from net.sf.gridarta.model.io.AbstractAnimationObjectsReader.

Definition at line 35 of file AtrinikAnimationObjectsReader.java.


The documentation for this class was generated from the following file: