X-Git-Url: https://gerrit.onap.org/r/gitweb?p=aaf%2Fauthz.git;a=blobdiff_plain;f=auth%2Fauth-batch%2Fsrc%2Fmain%2Fjava%2Forg%2Fonap%2Faaf%2Fauth%2Fbatch%2Fhelpers%2FInputIterator.java;h=b8b961870e708069114cc534856514d0f5ebd972;hp=04d9a0191851684d79174a8b1f0f16d3f391f96d;hb=e3163b2d5609753f874e2f52fd5ef67fa063af7a;hpb=781ab3c11ca25212e76cb3c5f9671e867eaaac0a diff --git a/auth/auth-batch/src/main/java/org/onap/aaf/auth/batch/helpers/InputIterator.java b/auth/auth-batch/src/main/java/org/onap/aaf/auth/batch/helpers/InputIterator.java index 04d9a019..b8b96187 100644 --- a/auth/auth-batch/src/main/java/org/onap/aaf/auth/batch/helpers/InputIterator.java +++ b/auth/auth-batch/src/main/java/org/onap/aaf/auth/batch/helpers/InputIterator.java @@ -3,6 +3,7 @@ * 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. @@ -26,11 +27,15 @@ import java.io.IOException; import java.io.PrintStream; import java.util.Iterator; import java.util.NoSuchElementException; +import org.onap.aaf.auth.env.AuthzTrans; + public class InputIterator implements Iterable { 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; @@ -50,6 +55,7 @@ public class InputIterator implements Iterable { try { input = in.readLine(); } catch (IOException e) { + trans.error().log("IO Exception",e.getMessage()); input = null; return false; } @@ -66,6 +72,7 @@ public class InputIterator implements Iterable { @Override public void remove() { + // To Do } }; }