org.unix4j.io.NullInput Maven / Gradle / Ivy
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