Package it.tidalwave.role.io.spi
Class PathBinaryReadable
- java.lang.Object
-
- it.tidalwave.role.io.spi.PathBinaryReadable
-
- All Implemented Interfaces:
BinaryReadable
public class PathBinaryReadable extends java.lang.Object implements BinaryReadable
An implementation ofBinaryReadable
which delegates to aPath
.- 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
Constructors Constructor Description PathBinaryReadable(java.nio.file.Path path, java.nio.file.OpenOption... openOptions)
Creates an instance with the given path and options.
-
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
-
-