Class Source.InputStreamSource

  • All Implemented Interfaces:
    Source
    Direct Known Subclasses:
    Source.StdInSource
    Enclosing interface:
    Source

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

      • in

        final java.io.InputStream in
      • name

        final java.lang.String name
    • Constructor Detail

      • InputStreamSource

        public InputStreamSource​(java.io.InputStream in,
                                 boolean close,
                                 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