public class IOPathUtils
extends java.lang.Object
| Constructor and Description |
|---|
IOPathUtils() |
| 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 file as a string.
|
static void |
writeStringToPath(IOPath ioPath,
java.lang.String contents)
Write a String to an IOPath.
|
public static IOPath createTempPath(java.lang.String prefix, java.lang.String suffix)
Path.prefix - file name prefix to usesuffix - file name suffix to usejava.io.IOException - in IO failurespublic static java.lang.String getStringFromPath(IOPath ioPath)
ioPath - ioPath to consumepublic static void writeStringToPath(IOPath ioPath, java.lang.String contents)
ioPath - path where contents should be writtencontents - a UTF-8 string to be written