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 ofBinaryReadablewhich 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.InputStreamopenStream()Returns anInputStreamto read from the object.
-
-
-
Method Detail
-
openStream
@Nonnull public java.io.InputStream openStream() throws java.io.IOExceptionReturns anInputStreamto read from the object.- Specified by:
openStreamin interfaceBinaryReadable- Returns:
- the
InputStream - Throws:
java.io.IOException- if the operation can't be performed
-
-