Interface StructureReader

All Superinterfaces:
AutoCloseable, Closeable

public interface StructureReader extends Closeable
Represents an abstract Structure Reader.
  • Method Summary

    Modifier and Type
    Method
    Description
    static boolean
    isCompatible(String minVersion)
    Checks whether the current server version is compatible with the specified minimum version, formatted in a Strcuture File.
    Reads the structure.
    Reads a list of Structure Points from a Structure Line.
    readRawPoint(String rawInput)
    Reads a singular point from its string form.
    static String
    Trims a line from a Structure File.

    Methods inherited from interface java.io.Closeable

    close
  • Method Details

    • read

      Structure read()
      Reads the structure.
      Returns:
      Structure.
    • isCompatible

      static boolean isCompatible(String minVersion)
      Checks whether the current server version is compatible with the specified minimum version, formatted in a Strcuture File.
      Parameters:
      minVersion - Minimum Structure Version
      Returns:
      true if compatible, false otherwise
    • trimLine

      static String trimLine(String point)
      Trims a line from a Structure File.
      Parameters:
      point - Line to trim
      Returns:
      Trimmed line
    • readPoints

      static List<StructurePoint> readPoints(String input)
      Reads a list of Structure Points from a Structure Line.
      Parameters:
      input - Structure File Line
      Returns:
      List of Structure Points
    • readRawPoint

      static StructurePoint readRawPoint(String rawInput)
      Reads a singular point from its string form.
      Parameters:
      rawInput - Raw Point
      Returns:
      Structure Point