Package it.tidalwave.role.io
Interface BinaryReadable
- All Known Implementing Classes:
PathBinaryReadable
- 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 read as a stream of bytes.
- Author:
- Fabrizio Giudici
- Status: stable API
- Stereotype:
- Role
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Class<BinaryReadable> static final BinaryReadableA default implementation which throwsIOExceptionwhen opening the stream. -
Method Summary
-
Field Details
-
_BinaryReadable_
-
DEFAULT
A default implementation which throwsIOExceptionwhen opening the stream.
-
-
Method Details
-
openStream
Returns anInputStreamto read from the object.- Returns:
- the
InputStream - Throws:
IOException- if the operation can't be performed
-