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 ofBinaryWritable
which 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.OutputStream
openStream()
Returns anOutputStream
to write into the object.
-
-
-
Method Detail
-
openStream
@Nonnull public java.io.OutputStream openStream() throws java.io.IOException
Returns anOutputStream
to write into the object.- Specified by:
openStream
in interfaceBinaryWritable
- Returns:
- the
OutputStream
- Throws:
java.io.IOException
- if the operation can't be performed
-
-