|
XCMS Toolkit | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjtools.BinaryFile
public class BinaryFile
Provides a mechanism for manipulating binary data on a disk file.
| Constructor Summary | |
|---|---|
BinaryFile(java.lang.String path)
Constructor for BinaryFile with file name path parameter. |
|
| Method Summary | |
|---|---|
byte[] |
readData()
Reads the entire contents of a disk file into a byte array. |
void |
writeData(byte[] data)
Writes an entire buffer of binary data to disk. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BinaryFile(java.lang.String path)
BinaryFile with file name path parameter.
path - file name path| Method Detail |
|---|
public void writeData(byte[] data)
throws java.io.IOException
data - an array of bytes to be written to disk
java.io.IOException
public byte[] readData()
throws java.io.IOException
byte array.
java.io.IOException
|
XCMS Toolkit | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||