Class PathTextReadable

java.lang.Object
it.tidalwave.role.io.spi.PathTextReadable
All Implemented Interfaces:
TextReadable

public class PathTextReadable extends Object implements TextReadable
An implementation of TextReadable which delegates to a Path.
Since:
3.2-ALPHA-12
Author:
Fabrizio Giudici
Status: stable API
  • Constructor Details

    • PathTextReadable

      public PathTextReadable(@Nonnull Path path)
      Creates an instance with the given path and options.
      Parameters:
      path - the path to open
    • PathTextReadable

      public PathTextReadable(@Nonnull Path path, @Nonnull Charset charset)
      Creates an instance with the given path and options.
      Parameters:
      path - the path to open
      charset - the character set
  • Method Details