Comment convertir FileInputStream en string en java?

Dans mon projet java, je suis de passage FileInputStream à une fonction,
J'ai besoin de convertir (transtypage FileInputStream à la chaîne),
Comment le faire.??

public static void checkfor(FileInputStream fis) {
   String a=new String;
   a=fis         //how to do convert fileInputStream into string
   print string here
}

source d'informationauteur bhushan23