Package it.tidalwave.role.io
Interface BinaryWritable
- All Known Implementing Classes:
PathBinaryWritable
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
The role of an object that can be written as a stream of bytes.
- Author:
- Fabrizio Giudici
- Status: stable API
- Stereotype:
- Role
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Class
<BinaryWritable> static final BinaryWritable
A default implementation which throwsIOException
when opening the stream. -
Method Summary
-
Field Details
-
_BinaryWritable_
-
DEFAULT
A default implementation which throwsIOException
when opening the stream.
-
-
Method Details
-
openStream
Returns anOutputStream
to write into the object.- Returns:
- the
OutputStream
- Throws:
IOException
- if the operation can't be performed
-