Package it.tidalwave.role.io.spi
Class PathTextReadable
java.lang.Object
it.tidalwave.role.io.spi.PathTextReadable
- All Implemented Interfaces:
TextReadable
An implementation of
TextReadable
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.TextReadable
_TextReadable_, DEFAULT
-
Constructor Summary
ConstructorDescriptionPathTextReadable
(Path path) Creates an instance with the given path and options.PathTextReadable
(Path path, Charset charset) Creates an instance with the given path and options. -
Method Summary
-
Constructor Details
-
PathTextReadable
Creates an instance with the given path and options.- Parameters:
path
- the path to open
-
PathTextReadable
Creates an instance with the given path and options.- Parameters:
path
- the path to opencharset
- the character set
-
-
Method Details
-
openReader
Returns aReader
to read from the object.- Specified by:
openReader
in interfaceTextReadable
- Returns:
- the
Reader
- Throws:
IOException
- if the operation can't be performed
-