I have a tiny method attempting to return a Windows file path from an InputStream object. In the Eclipse Variables window, I can see the String I want in the field 'path', but can't seem to access and return it. (See image.)
static String getPathFromInputStream(InputStream is) {
Scanner s = new Scanner(is).useDelimiter("\\A");
return "abc"; // Compile error from: is.in.path;
} // "in cannot be resolved or is not a field"
Two questions: Should I be able to access everything I see in the Variables window? And two, how do I return String 'path' (if I can)?