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 ofBinaryWritablewhich 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.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
-
-