public class IOUtils
extends java.lang.Object
IOPath Path in public
method argument lists.| Constructor and Description |
|---|
IOUtils() |
| Modifier and Type | Method and Description |
|---|---|
static IOPath |
createTempPath(java.lang.String prefix,
java.lang.String suffix)
Create a temporary file using a given name prefix and name suffix and return a
Path. |
static java.lang.String |
getStringFromPath(IOPath ioPath)
Get the entire contents of an IOPath as a string.
|
static HtsPath |
toHtsPath(java.nio.file.Path toConvert)
Convert Path to GATKPath, returning null if input was null.
|
static void |
writeStringToPath(IOPath ioPath,
java.lang.String contents,
boolean gzipOutput)
Write a String to an IOPath.
|
public static IOPath createTempPath(java.lang.String prefix, java.lang.String suffix)
Path.prefix - suffix - java.io.IOExceptionpublic static HtsPath toHtsPath(java.nio.file.Path toConvert)
toConvert - Path to convert to GATKPathpublic static java.lang.String getStringFromPath(IOPath ioPath)
ioPath - public static void writeStringToPath(IOPath ioPath, java.lang.String contents, boolean gzipOutput)
ioPath - path where contents should be writtencontents - a UTF-8 string to be writtengzipOutput - if true, gzip output