Package it.tidalwave.role.io
Interface TextReadable
- All Known Implementing Classes:
PathTextReadable
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
The role of an object that can be read as a stream of characters.
- Author:
- Fabrizio Giudici
- Status: stable API
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Class
<TextReadable> static final TextReadable
A default implementation which throwsIOException
when opening the stream. -
Method Summary
-
Field Details
-
_TextReadable_
-
DEFAULT
A default implementation which throwsIOException
when opening the stream.
-
-
Method Details
-
openReader
Returns aReader
to read from the object.- Returns:
- the
Reader
- Throws:
IOException
- if the operation can't be performed
-