Package org.jline.builtins
Class Source.InputStreamSource
- java.lang.Object
-
- org.jline.builtins.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
A Source implementation that reads from an InputStream.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.jline.builtins.Source
Source.InputStreamSource, Source.PathSource, Source.ResourceSource, Source.StdInSource, Source.URLSource
-
-
Constructor Summary
Constructors Constructor Description InputStreamSource(java.io.InputStream in, boolean close, java.lang.String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getName()
Gets the name of this source.java.lang.Long
lines()
Gets the number of lines in this source, if known.java.io.InputStream
read()
Opens a stream to read the content of this source.
-