Class SoiUtil

java.lang.Object
com.sandpolis.core.soi.SoiUtil

public final class SoiUtil
extends java.lang.Object
A SOI object utility.
Since:
5.0.0
  • Method Details

    • readBuild

      public static Build.SO_Build readBuild​(java.nio.file.Path file) throws java.io.IOException
      Read the Build.SO_Build object from the given zip.
      Parameters:
      file - A zip containing an entry: /soi/build.bin
      Returns:
      A new build object
      Throws:
      java.io.IOException - If the file does not exist, have the required entry, or could not be read
    • readMatrix

      public static Dependency.SO_DependencyMatrix readMatrix​(java.nio.file.Path file) throws java.io.IOException
      Read the Dependency.SO_DependencyMatrix object from the given zip.
      Parameters:
      file - A zip containing an entry: /soi/matrix.bin
      Returns:
      A new dependency matrix
      Throws:
      java.io.IOException - If the file does not exist, have the required entry, or could not be read
    • getMatrix

      public static Dep getMatrix​(java.nio.file.Path file) throws java.io.IOException
      Throws:
      java.io.IOException