public final class DotFileUtils
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
read(java.io.File file) |
static java.lang.String |
read(java.io.InputStream is)
Reads a string from the given input stream.
|
static java.io.File |
resolve(java.net.URL url) |
static java.io.File |
write(java.lang.String text) |
static java.io.File |
write(java.lang.String text,
java.io.File destination) |
public static java.io.File resolve(java.net.URL url)
url
- The URL to resolve (can be workspace-relative)public static java.io.File write(java.lang.String text)
text
- The string to write out to a temp filepublic static java.io.File write(java.lang.String text, java.io.File destination)
text
- The string to write out to a filedestination
- The file to write the string topublic static java.lang.String read(java.io.File file)
file
- The file to read into a stringpublic static java.lang.String read(java.io.InputStream is) throws java.io.IOException
is
- The input stream to read.String
java.io.IOException
- In case I/O exceptions occurred.Copyright (c) 2014 itemis AG and others. All rights reserved.