public class FMUFile
extends java.lang.Object
The parseFMUFile() method in this class is the primary entry point into this package.
FMI documentation may be found at http://www.modelisar.com/fmi.html.
Red (cxh) |
Red (cxh) |
Constructor and Description |
---|
FMUFile() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
fmuSharedLibrary(FMIModelDescription fmiModelDescription)
Return the name of the shared library from a .fmu file.
|
static FMIModelDescription |
parseFMUFile(java.lang.String fmuFileName)
Read in a .fmu file and parse the modelDescription.xml file.
|
static java.util.List<java.io.File> |
unzip(java.lang.String zipFileName)
Unzip a file into a temporary directory.
|
public static java.lang.String fmuSharedLibrary(FMIModelDescription fmiModelDescription) throws java.io.IOException
fmiModelDescription
- The representation of the model that was read
in by {#parseFMUFile}.java.io.IOException
- If thrown while determining the canonical path of the library.public static FMIModelDescription parseFMUFile(java.lang.String fmuFileName) throws java.io.IOException
fmuFileName
- the .fmu filejava.io.IOException
- If the file cannot be unzipped or the
modelDescription.xml file contained by the fmuFileName zip
file cannot be parsed.public static java.util.List<java.io.File> unzip(java.lang.String zipFileName) throws java.io.IOException
zipFileName
- The file to be unzipped.java.io.IOException
- if the file cannot be opened, if there are problems reading
the zip file or if there are problems creating the files or directories.