Package io.wcm.devops.conga.model.reader
Interface ModelReader<T>
-
- Type Parameters:
T
- Model type.
- All Known Implementing Classes:
AbstractModelReader
,EnvironmentReader
,RoleReader
public interface ModelReader<T>
Reads a model.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
accepts(Resource file)
Checks if the given file is accepted by this reader.T
read(Resource file)
Read modelT
read(InputStream is)
Read modelT
read(Reader reader)
Read model
-
-
-
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
-
-