Class ModelArchiveReader


  • public class ModelArchiveReader
    extends java.lang.Object
    The model archive reader can be used to read an archive based on a model The archive contains the model file and all artifacts.
    Since:
    1.3
    • Constructor Detail

      • ModelArchiveReader

        public ModelArchiveReader()
    • Method Detail

      • read

        public static Model read​(java.io.InputStream in,
                                 ModelArchiveReader.ArtifactConsumer consumer)
                          throws java.io.IOException
        Read a model archive. The input stream is not closed. It is up to the caller to close the input stream.
        Parameters:
        in - The input stream to read from.
        Returns:
        The model
        Throws:
        java.io.IOException - If anything goes wrong