Como converter FileInputStream em string em java?
No meu projeto java, estou passando FileInputStream para uma função, eu preciso converter (typecast FileInputStream para string), como fazê-lo.
public static void checkfor(FileInputStream fis) {
String a=new String;
a=fis //how to do convert fileInputStream into string
print string here
}