Package it.tidalwave.role.io.spi
Class FileBinaryReadable
- java.lang.Object
-
- it.tidalwave.role.io.spi.FileBinaryReadable
-
- All Implemented Interfaces:
BinaryReadable
public class FileBinaryReadable extends java.lang.Object implements BinaryReadable
An implementation ofBinaryReadable
which delegates to aFile
.- Author:
- Fabrizio Giudici
- Status: stable API
-
-
Field Summary
-
Fields inherited from interface it.tidalwave.role.io.BinaryReadable
_BinaryReadable_, DEFAULT
-
-
Constructor Summary
Constructors Constructor Description FileBinaryReadable()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.InputStream
openStream()
Returns anInputStream
to read from the object.
-
-
-
Method Detail
-
openStream
@Nonnull public java.io.InputStream openStream() throws java.io.IOException
Returns anInputStream
to read from the object.- Specified by:
openStream
in interfaceBinaryReadable
- Returns:
- the
InputStream
- Throws:
java.io.IOException
- if the operation can't be performed
-
-