Gridarta Editor
net.sf.gridarta.model.io.MapArchObjectParser< A extends MapArchObject< A > Interface Template Reference

Interface for classes that read or write MapArchObject instances. More...

+ Inheritance diagram for net.sf.gridarta.model.io.MapArchObjectParser< A extends MapArchObject< A >:
+ Collaboration diagram for net.sf.gridarta.model.io.MapArchObjectParser< A extends MapArchObject< A >:

Public Member Functions

void load (@NotNull BufferedReader reader, @NotNull A mapArchObject) throws IOException
 Parse a map arch object from a stream. More...
 
void save (@NotNull Appendable appendable, @NotNull A mapArchObject, @Nullable MapFile mapFile) throws IOException
 Write a map arch object to a stream. More...
 

Detailed Description

Interface for classes that read or write MapArchObject instances.

Author
Andreas Kirschbaum

Definition at line 33 of file MapArchObjectParser.java.

Member Function Documentation

◆ load()

void net.sf.gridarta.model.io.MapArchObjectParser< A extends MapArchObject< A >.load ( @NotNull BufferedReader  reader,
@NotNull A  mapArchObject 
) throws IOException

Parse a map arch object from a stream.

Parameters
readerthe stream to read
mapArchObjectthe map arch object to update
Exceptions
IOExceptionif the stream cannot be read or if a parsing error occurs; the map arch object may have been partially updated

◆ save()

void net.sf.gridarta.model.io.MapArchObjectParser< A extends MapArchObject< A >.save ( @NotNull Appendable  appendable,
@NotNull A  mapArchObject,
@Nullable MapFile  mapFile 
) throws IOException

Write a map arch object to a stream.

Parameters
appendablethe stream to write to
mapArchObjectthe map arch object to write
mapFilethe map file or
null
if unknown
Exceptions
IOExceptionif the stream cannot be written

Referenced by net.sf.gridarta.model.io.DefaultMapWriter< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.encodeMapFile().

+ Here is the caller graph for this function:

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