Package it.tidalwave.role.io.spi
Class PathBinaryReadable
java.lang.Object
it.tidalwave.role.io.spi.PathBinaryReadable
- All Implemented Interfaces:
BinaryReadable
An implementation of
BinaryReadable
which delegates to a Path
.- Since:
- 3.2-ALPHA-12
- Author:
- Fabrizio Giudici
- Status: stable API
-
Field Summary
Fields inherited from interface it.tidalwave.role.io.BinaryReadable
_BinaryReadable_, DEFAULT
-
Constructor Summary
ConstructorDescriptionPathBinaryReadable
(Path path, OpenOption... openOptions) Creates an instance with the given path and options. -
Method Summary
-
Constructor Details
-
PathBinaryReadable
Creates an instance with the given path and options.- Parameters:
path
- the path to openopenOptions
- open options
-
-
Method Details
-
openStream
Returns anInputStream
to read from the object.- Specified by:
openStream
in interfaceBinaryReadable
- Returns:
- the
InputStream
- Throws:
IOException
- if the operation can't be performed
-