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
ConstructorsConstructorDescriptionPathBinaryReadable(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 anInputStreamto read from the object.- Specified by:
openStreamin interfaceBinaryReadable- Returns:
- the
InputStream - Throws:
IOException- if the operation can't be performed
-