Package org.insa.graphs.model.io
Interface PathWriter
-
- All Superinterfaces:
java.lang.AutoCloseable
,java.io.Closeable
- All Known Implementing Classes:
BinaryPathWriter
public interface PathWriter extends java.lang.AutoCloseable, java.io.Closeable
Base interface that should be implemented by class used to write paths.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
close()
Close this graph reader.void
writePath(Path path)
Write the given path.
-
-
-
Method Detail
-
writePath
void writePath(Path path) throws java.io.IOException
Write the given path.- Parameters:
path
- Path to write.- Throws:
java.io.IOException
- When an error occurs while writing 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.
-
-