public class ConvertToString extends Object
| Modifier and Type | Method and Description | 
|---|---|
| static String | getString(File file)Get the content of a File as a String. | 
| static String | getString(InputStream is)Get the content of an InputStream as a String. | 
| static String | getString(String filePath)Get the content of a file as a String. | 
public static String getString(File file) throws IOException
file - The file where to read the string.IOExceptionpublic static String getString(String filePath) throws IOException
filePath - The absolute path of the file.IOExceptionpublic static String getString(InputStream is) throws IOException
is - The InputStream where to get the String.IOExceptionCopyright © 2010–2020 CERN. All rights reserved.