Package it.tidalwave.role.io.spi
Class PathBinaryWritable
- java.lang.Object
-
- it.tidalwave.role.io.spi.PathBinaryWritable
-
- All Implemented Interfaces:
BinaryWritable
public class PathBinaryWritable extends java.lang.Object implements BinaryWritable
An implementation ofBinaryWritablewhich delegates to aPath.- Since:
- 3.2-ALPHA-12
- Author:
- Fabrizio Giudici
- Status: stable API
-
-
Field Summary
-
Fields inherited from interface it.tidalwave.role.io.BinaryWritable
_BinaryWritable_, DEFAULT
-
-
Constructor Summary
Constructors Constructor Description PathBinaryWritable(java.nio.file.Path path, java.nio.file.OpenOption... openOptions)Creates an instance with the given path and options.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.OutputStreamopenStream()Returns anOutputStreamto write into the object.
-
-
-
Method Detail
-
openStream
@Nonnull public java.io.OutputStream openStream() throws java.io.IOExceptionReturns anOutputStreamto write into the object.- Specified by:
openStreamin interfaceBinaryWritable- Returns:
- the
OutputStream - Throws:
java.io.IOException- if the operation can't be performed
-
-