Package net.sf.gridarta.model.io
Interface MapArchObjectParser<A extends MapArchObject<A>>
-
- All Known Implementing Classes:
AbstractMapArchObjectParser,MapArchObjectParser,MapArchObjectParser,MapArchObjectParser
public interface MapArchObjectParser<A extends MapArchObject<A>>Interface for classes that read or writeMapArchObjectinstances.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidload(@NotNull java.io.BufferedReader reader, A mapArchObject)Parse a map arch object from a stream.voidsave(@NotNull java.lang.Appendable appendable, A mapArchObject, @Nullable MapFile mapFile)Write a map arch object to a stream.
-
-
-
Method Detail
-
load
void load(@NotNull @NotNull java.io.BufferedReader reader, @NotNull A mapArchObject) throws java.io.IOExceptionParse a map arch object from a stream.- Parameters:
reader- the stream to readmapArchObject- the map arch object to update- Throws:
java.io.IOException- if the stream cannot be read or if a parsing error occurs; the map arch object may have been partially updated
-
save
void save(@NotNull @NotNull java.lang.Appendable appendable, @NotNull A mapArchObject, @Nullable @Nullable MapFile mapFile) throws java.io.IOExceptionWrite a map arch object to a stream.- Parameters:
appendable- the stream to write tomapArchObject- the map arch object to writemapFile- the map file ornullif unknown- Throws:
java.io.IOException- if the stream cannot be written
-
-