Package it.tidalwave.role.io.spi
Class PathBinaryWritable
java.lang.Object
it.tidalwave.role.io.spi.PathBinaryWritable
- All Implemented Interfaces:
BinaryWritable
An implementation of
BinaryWritable which delegates to a Path.- 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
ConstructorsConstructorDescriptionPathBinaryWritable(Path path, OpenOption... openOptions) Creates an instance with the given path and options. -
Method Summary
-
Constructor Details
-
PathBinaryWritable
Creates an instance with the given path and options.- Parameters:
path- the path to openopenOptions- open options
-
-
Method Details
-
openStream
Returns anOutputStreamto write into the object.- Specified by:
openStreamin interfaceBinaryWritable- Returns:
- the
OutputStream - Throws:
IOException- if the operation can't be performed
-