|
Copyright 2011-01-06 Werner Randelshofer | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectch.randelshofer.media.binary.FileBasedBinaryModel
public class FileBasedBinaryModel
FileBasedBinaryModel.
FIXME - The file based binary model may grow infinitely large.
| Constructor Summary | |
|---|---|
FileBasedBinaryModel(java.io.File file)
|
|
FileBasedBinaryModel(java.io.File file,
long offset,
long length)
|
|
| Method Summary | |
|---|---|
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. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public FileBasedBinaryModel(java.io.File file)
throws java.io.IOException
java.io.IOException
public FileBasedBinaryModel(java.io.File file,
long offset,
long length)
throws java.io.IOException
java.io.IOException| Method Detail |
|---|
public java.lang.String toString()
toString in class java.lang.Objectpublic long getLength()
BinaryModel
getLength in interface BinaryModel
public int getBytes(long off,
int len,
byte[] target)
BinaryModel
getBytes in interface BinaryModeloff - the starting offset >= 0len - the number of bytes >= 0 && <= size - offsettarget - the target array to copy intopublic void close()
BinaryModel
close in interface BinaryModelpublic void finalize()
finalize in class java.lang.Object
|
Copyright 2011-01-06 Werner Randelshofer | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||