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 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 Details
-
readBuild
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.IOExceptionRead 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
- Throws:
java.io.IOException
-