Class ModelReader


  • public class ModelReader
    extends java.lang.Object
    This class offers a method to read a model using a Reader instance.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static Model read​(java.io.Reader reader, java.lang.String location)
      Reads the model file The reader is not closed.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • read

        public static Model read​(java.io.Reader reader,
                                 java.lang.String location)
                          throws java.io.IOException
        Reads the model file The reader is not closed. It is up to the caller to close the reader.
        Parameters:
        reader - The reader providing the model
        location - Optional location string identifying the source of the model.
        Throws:
        java.io.IOException - If an error occurs