public class MapArchObjectParser extends AbstractMapArchObjectParser<MapArchObject>
MapArchObjectParser for Atrinik map arch
object instances.| Constructor and Description |
|---|
MapArchObjectParser() |
| Modifier and Type | Method and Description |
|---|---|
void |
load(@NotNull java.io.BufferedReader reader,
@NotNull MapArchObject mapArchObject)
Parse a map arch object from a stream.
|
protected boolean |
parseLine(@NotNull java.lang.String line,
@NotNull java.lang.String key,
@NotNull java.lang.String value,
@NotNull MapArchObject mapArchObject,
@NotNull java.io.BufferedReader reader)
Parse a line for this editor type.
|
void |
save(@NotNull java.lang.Appendable appendable,
@NotNull MapArchObject mapArchObject,
@Nullable MapFile mapFile)
Write a map arch object to a stream.
|
public void load(@NotNull
@NotNull java.io.BufferedReader reader,
@NotNull
@NotNull MapArchObject mapArchObject)
throws java.io.IOException
MapArchObjectParserload in interface MapArchObjectParser<MapArchObject>load in class AbstractMapArchObjectParser<MapArchObject>reader - the stream to readmapArchObject - the map arch object to updatejava.io.IOException - if the stream cannot be read or if a parsing error
occurs; the map arch object may have been partially updatedpublic void save(@NotNull
@NotNull java.lang.Appendable appendable,
@NotNull
@NotNull MapArchObject mapArchObject,
@Nullable
@Nullable MapFile mapFile)
throws java.io.IOException
MapArchObjectParserappendable - the stream to write tomapArchObject - the map arch object to writemapFile - the map file or null if unknownjava.io.IOException - if the stream cannot be writtenprotected boolean parseLine(@NotNull
@NotNull java.lang.String line,
@NotNull
@NotNull java.lang.String key,
@NotNull
@NotNull java.lang.String value,
@NotNull
@NotNull MapArchObject mapArchObject,
@NotNull
@NotNull java.io.BufferedReader reader)
throws java.io.IOException
AbstractMapArchObjectParserparseLine in class AbstractMapArchObjectParser<MapArchObject>line - the line to parsekey - the key from linevalue - the value from line; the empty string if the line
contains no valuemapArchObject - the map arch object to updatereader - the reader for reading additional linesjava.io.IOException - if an I/O error occurs or if the line cannot be
parsed