All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.unix4j.io.NullInput Maven / Gradle / Ivy

There is a newer version: 0.6
Show newest version
package org.unix4j.io;

import org.unix4j.line.Line;

/**
 * Input device representing an empty set with no lines.
 */
public class NullInput extends AbstractInput {
	
	public static final NullInput INSTANCE = new NullInput();
	
	@Override
	public boolean hasMoreLines() {
		return false;
	}

	@Override
	public Line readLine() {
		return null;
	}
	
	@Override
	public String toString() {
		return getClass().getSimpleName();
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy