|
XCMS Toolkit | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjtools.DataFile
public class DataFile
Provides a meachanism for manipulating data in a disk file.
| Constructor Summary | |
|---|---|
DataFile(java.lang.String fileName)
Constructor for DataFile, with a parameter that specifies
the disk file where data is to be read from or written to. |
|
| Method Summary | |
|---|---|
byte[] |
readAll()
Reads the entire contents of a disk file into a byte array. |
void |
writeAll(byte[] bytes)
Writes an entire byte array to disk. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DataFile(java.lang.String fileName)
throws java.io.IOException
DataFile, with a parameter that specifies
the disk file where data is to be read from or written to.
fileName - a file name path string
java.io.IOException| Method Detail |
|---|
public byte[] readAll()
throws java.io.IOException
java.io.IOException
public void writeAll(byte[] bytes)
throws java.io.IOException
bytes - data to be written to disk
java.io.IOException
|
XCMS Toolkit | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||