Class Source.PathSource

  • All Implemented Interfaces:
    Source
    Enclosing interface:
    Source

    public static class Source.PathSource
    extends java.lang.Object
    implements Source
    • Field Detail

      • path

        final java.nio.file.Path path
      • name

        final java.lang.String name
    • Constructor Detail

      • PathSource

        public PathSource​(java.io.File file,
                          java.lang.String name)
      • PathSource

        public PathSource​(java.nio.file.Path path,
                          java.lang.String name)
    • Method Detail

      • getName

        public java.lang.String getName()
        Specified by:
        getName in interface Source
      • read

        public java.io.InputStream read()
                                 throws java.io.IOException
        Specified by:
        read in interface Source
        Throws:
        java.io.IOException
      • lines

        public java.lang.Long lines()
        Specified by:
        lines in interface Source