| 
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.3.0) E17493-04  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
  
oracle.ide.util.FileUtilities
public final class FileUtilities
The FileUtilities contain utility routine for I/O operations.
| Constructor Summary | |
|---|---|
FileUtilities() | 
|
| Method Summary | |
|---|---|
static byte[] | 
readFile(java.net.URL url)Reads the contents of the URL completely into memory, returning the contents as a byte array.  | 
static void | 
writeFile(java.net.URL url, byte[] data)Writes the specified contents to the URL location.  | 
static void | 
writeFile(java.net.URL url, byte[] data, int offset, int count)Writes the specified contents to the URL location.  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public FileUtilities()
| Method Detail | 
|---|
public static byte[] readFile(java.net.URL url)
                       throws java.io.IOException
url - the url to read injava.io.IOException - if the url cannot be read
public static void writeFile(java.net.URL url,
                             byte[] data)
                      throws java.io.IOException
url - the url to write tocount - the number of bytes from the array to write outjava.io.IOException - if the url cannot be written to
public static void writeFile(java.net.URL url,
                             byte[] data,
                             int offset,
                             int count)
                      throws java.io.IOException
url - the url to write todata - the data to write outoffset - the offset in the array where the byte data startscount - the number of bytes from the array to write outjava.io.IOException - if the url cannot be written to
  | 
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.3.0) E17493-04  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||