Package ubic.gemma.core.util
Class FileUtils
- java.lang.Object
-
- ubic.gemma.core.util.FileUtils
-
public class FileUtils extends Object
- Author:
- poirigui
-
-
Constructor Summary
Constructors Constructor Description FileUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static InputStream
openCompressedFile(Path path)
Open a GZIP-compressed file safely.
-
-
-
Method Detail
-
openCompressedFile
public static InputStream openCompressedFile(Path path) throws IOException
Open a GZIP-compressed file safely.This ensures that if an exception is thrown by
GZIPInputStream(InputStream)
, the stream will be closed.- Throws:
IOException
-
-