class EolHelper {

    public static boolean endsWithEol(String line) {
        if (line == null) {
            throw new IllegalArgumentException("Line argument cannot be null");
        }
        return line.endsWith("\n") || line.endsWith("\r");
    }

}