Interface ModelReader<T>

    • Method Detail

      • accepts

        boolean accepts​(Resource file)
        Checks if the given file is accepted by this reader.
        Parameters:
        file - File
        Returns:
        true if accepted
      • read

        T read​(Resource file)
        throws IOException
        Read model
        Parameters:
        file - Model file
        Returns:
        Model object
        Throws:
        IOException - is thrown when I/O exception occurs
      • read

        T read​(InputStream is)
        throws IOException
        Read model
        Parameters:
        is - Model file
        Returns:
        Model object
        Throws:
        IOException - is thrown when I/O exception occurs
      • read

        T read​(Reader reader)
        Read model
        Parameters:
        reader - Model file
        Returns:
        Model object