Package org.eclipse.gef.dot.internal
Class DotFileUtils
java.lang.Object
org.eclipse.gef.dot.internal.DotFileUtils
Static helper methods for working with files.
-
Method Summary
-
Method Details
-
resolve
- Parameters:
url
- The URL to resolve (can be workspace-relative)- Returns:
- The file corresponding to the given URL
-
write
- Parameters:
text
- The string to write out to a temp file- Returns:
- The temp file containing the given string
-
write
- Parameters:
text
- The string to write out to a filedestination
- The file to write the string to- Returns:
- The file containing the given string
-
read
- Parameters:
file
- The file to read into a string- Returns:
- The string containing the contents of the given file
-
read
Reads a string from the given input stream.- Parameters:
is
- The input stream to read.- Returns:
- The contents of the input stream as a
String
- Throws:
IOException
- In case I/O exceptions occurred.
-