public class FileBasedBinaryModel extends Object implements BinaryModel
FIXME - The file based binary model may grow infinitely large.
| Constructor and Description |
|---|
FileBasedBinaryModel(File file) |
FileBasedBinaryModel(File file,
long offset,
long length) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the model and disposes all resources.
|
void |
finalize() |
int |
getBytes(long off,
int len,
byte[] target)
Gets a sequence of bytes and copies them into the supplied byte array.
|
long |
getLength()
Returns the total length of the binary data.
|
String |
toString() |
public FileBasedBinaryModel(File file) throws IOException
IOExceptionpublic FileBasedBinaryModel(File file, long offset, long length) throws IOException
IOExceptionpublic long getLength()
BinaryModelgetLength in interface BinaryModelpublic int getBytes(long off,
int len,
byte[] target)
BinaryModelgetBytes in interface BinaryModeloff - the starting offset >= 0len - the number of bytes >= 0 && <= size - offsettarget - the target array to copy intopublic void close()
BinaryModelclose in interface BinaryModelCopyright © 2014. All Rights Reserved.