Package org.insa.graphs.model.io
Interface PathReader
-
- All Superinterfaces:
java.lang.AutoCloseable
,java.io.Closeable
- All Known Implementing Classes:
BinaryPathReader
public interface PathReader extends java.lang.AutoCloseable, java.io.Closeable
Base interface that should be implemented by class used to read paths.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
close()
Close this graph reader.Path
readPath(Graph graph)
Read a path of the given graph and returns it.
-
-
-
Method Detail
-
readPath
Path readPath(Graph graph) throws java.io.IOException
Read a path of the given graph and returns it.- Parameters:
graph
- Graph of the path.- Returns:
- Path read.
- Throws:
java.io.IOException
- When an error occurs while reading the path.
-
close
void close() throws java.io.IOException
Close this graph reader.- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Throws:
java.io.IOException
- if an exception occurs while closing the reader.
-
-