Package it.tidalwave.role.io.spi
Class PathTextWritable
java.lang.Object
it.tidalwave.role.io.spi.PathTextWritable
- All Implemented Interfaces:
TextWritable
An implementation of
TextWritable
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.TextWritable
_TextWritable_, DEFAULT
-
Constructor Summary
ConstructorDescriptionPathTextWritable
(Path path) Creates an instance with the given path and options.PathTextWritable
(Path path, Charset charset, OpenOption... openOptions) Creates an instance with the given path and options. -
Method Summary
-
Constructor Details
-
PathTextWritable
Creates an instance with the given path and options.- Parameters:
path
- the path to open
-
PathTextWritable
public PathTextWritable(@Nonnull Path path, @Nonnull Charset charset, @Nonnull OpenOption... openOptions) Creates an instance with the given path and options.- Parameters:
path
- the path to opencharset
- the character setopenOptions
- open options
-
-
Method Details
-
openWriter
Returns aWriter
to write into the object..- Specified by:
openWriter
in interfaceTextWritable
- Returns:
- a
Writer
to write into the object. - Throws:
IOException
- if the operation can't be performed
-