Package it.tidalwave.role.io.spi
Class FileBinaryWritable
- java.lang.Object
-
- it.tidalwave.role.io.spi.FileBinaryWritable
-
- All Implemented Interfaces:
BinaryWritable
public class FileBinaryWritable extends java.lang.Object implements BinaryWritable
An implementation ofBinaryWritable
which delegates to aFile
.- Author:
- Fabrizio Giudici
- Status: stable API
-
-
Field Summary
-
Fields inherited from interface it.tidalwave.role.io.BinaryWritable
_BinaryWritable_, DEFAULT
-
-
Constructor Summary
Constructors Constructor Description FileBinaryWritable()
-
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
-
-