Package com.sandpolis.core.soi
Class SoiUtil
- java.lang.Object
-
- com.sandpolis.core.soi.SoiUtil
-
public final class SoiUtil extends java.lang.ObjectA SOI object utility.- Since:
- 5.0.0
-
-
Method Summary
Modifier and Type Method Description static DepgetMatrix(java.nio.file.Path file)static Build.SO_BuildreadBuild(java.nio.file.Path file)Read theBuild.SO_Buildobject from the given zip.static Dependency.SO_DependencyMatrixreadMatrix(java.nio.file.Path file)Read theDependency.SO_DependencyMatrixobject from the given zip.
-
-
-
Method Detail
-
readBuild
public static Build.SO_Build readBuild(java.nio.file.Path file) throws java.io.IOException
Read theBuild.SO_Buildobject 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 theDependency.SO_DependencyMatrixobject 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
-
-