Interface ModelReader<T>

Type Parameters:
T - Model type.
All Known Implementing Classes:
AbstractModelReader, EnvironmentReader, RoleReader

public interface ModelReader<T>
Reads a model.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Checks if the given file is accepted by this reader.
    read(Resource file)
    Read model
    Read model
    read(Reader reader)
    Read model
  • Method Details

    • 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