Interface MapArchObjectParser<A extends MapArchObject<A>>

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void load​(@NotNull java.io.BufferedReader reader, A mapArchObject)
      Parse a map arch object from a stream.
      void save​(@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.IOException
        Parse a map arch object from a stream.
        Parameters:
        reader - the stream to read
        mapArchObject - 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.IOException
        Write a map arch object to a stream.
        Parameters:
        appendable - the stream to write to
        mapArchObject - the map arch object to write
        mapFile - the map file or null if unknown
        Throws:
        java.io.IOException - if the stream cannot be written