Class ScannerStream<T>

java.lang.Object
io.datarouter.scanner.ScannerStream<T>
All Implemented Interfaces:
AutoCloseable, BaseStream<T,​Stream<T>>, Stream<T>

public class ScannerStream<T>
extends Object
implements Stream<T>
Wrapper around a Scanner to allow closing it without explicitly closing the Stream. Some operations do release a native Stream that must still be closed if it isn't fully consumed.