* org.onap.aaf
* ===========================================================================
* Copyright (c) 2018 AT&T Intellectual Property. All rights reserved.
+ * Modifications Copyright (C) 2018 IBM.
* ===========================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
import java.io.PrintStream;
import java.util.Iterator;
import java.util.NoSuchElementException;
+import org.onap.aaf.auth.env.AuthzTrans;
+
public class InputIterator implements Iterable<String> {
private BufferedReader in;
private final PrintStream out;
- private final String prompt, instructions;
+ private final String prompt;
+ private final String instructions;
+ private static AuthzTrans trans;
public InputIterator(BufferedReader in, PrintStream out, String prompt, String instructions) {
this.in = in;
try {
input = in.readLine();
} catch (IOException e) {
+ trans.error().log("IO Exception",e.getMessage());
input = null;
return false;
}
@Override
public void remove() {
+ // To Do
}
};
}