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 ofBinaryReadablewhich 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.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
-
-