oracle.jdeveloper.vcs.util
Class VCSTextFileUtils
java.lang.Object
oracle.jdeveloper.vcs.util.VCSTextFileUtils
- public final class VCSTextFileUtils
- extends java.lang.Object
Utility class for accessing and writing simple text files.
- Since:
- 9.0.5
Method Summary |
static java.lang.String |
readTextFile(java.net.URL url)
Reads a text string from a local file. |
static void |
writeTextFile(java.net.URL url, java.lang.String contents)
Writes the given text string to a local file. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
writeTextFile
public static final void writeTextFile(java.net.URL url,
java.lang.String contents)
throws java.io.IOException
- Writes the given text string to a local file.
-
- Parameters:
url
- the location of the local file to write.
contents
- the data to write to the local file. (null-capable)
- Throws:
java.io.IOException
readTextFile
public static final java.lang.String readTextFile(java.net.URL url)
throws java.io.IOException
- Reads a text string from a local file.
-
- Parameters:
url
- the location of the local file to read.
- Throws:
java.io.IOException
Copyright © 1997, 2004, Oracle. All rights reserved.