Package org.insa.graphs.model.io
Class BinaryPathWriter
- java.lang.Object
-
- org.insa.graphs.model.io.BinaryWriter
-
- org.insa.graphs.model.io.BinaryPathWriter
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
,PathWriter
public class BinaryPathWriter extends BinaryWriter implements PathWriter
Implementation ofPathWriter
to write paths in binary format.
-
-
Field Summary
-
Fields inherited from class org.insa.graphs.model.io.BinaryWriter
dos
-
-
Constructor Summary
Constructors Constructor Description BinaryPathWriter(java.io.DataOutputStream dos)
Create a new BinaryPathWriter that writes to the given output stream.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
writePath(Path path)
Write the given path.-
Methods inherited from class org.insa.graphs.model.io.BinaryWriter
close, write24bits
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.insa.graphs.model.io.PathWriter
close
-
-
-
-
Method Detail
-
writePath
public void writePath(Path path) throws java.io.IOException
Description copied from interface:PathWriter
Write the given path.- Specified by:
writePath
in interfacePathWriter
- Parameters:
path
- Path to write.- Throws:
java.io.IOException
- When an error occurs while writing the path.
-
-