Package org.openforis.commons.io
Class OpenForisIOUtils
- java.lang.Object
-
- org.openforis.commons.io.OpenForisIOUtils
-
public class OpenForisIOUtils extends Object
- Author:
- S. Ricci
-
-
Constructor Summary
Constructors Constructor Description OpenForisIOUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static FilecopyToTempFile(InputStream is)static FilecopyToTempFile(InputStream is, String extension)static FilecopyToTempFile(Reader reader)static FilecopyToTempFile(Reader reader, String extension)static InputStreamtoInputStream(Reader reader)static ReadertoReader(File file)static ReadertoReader(File file, String charsetName)static InputStreamReadertoReader(InputStream is)
-
-
-
Field Detail
-
UTF_8
public static final String UTF_8
- See Also:
- Constant Field Values
-
-
Method Detail
-
copyToTempFile
public static File copyToTempFile(InputStream is)
-
copyToTempFile
public static File copyToTempFile(InputStream is, String extension)
-
toInputStream
public static InputStream toInputStream(Reader reader)
-
toReader
public static InputStreamReader toReader(InputStream is)
-
toReader
public static Reader toReader(File file) throws FileNotFoundException
- Throws:
FileNotFoundException
-
toReader
public static Reader toReader(File file, String charsetName) throws FileNotFoundException
- Throws:
FileNotFoundException
-
-