|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.superhac.JXBStreamer.Core.FileHandlerObject
public class FileHandlerObject
The FileHandlerObject maps Files to handles and provides services for fulfilling client requests on Files. E.g. get file data.
More information can be found at Superhac.com
Constructor Summary | |
---|---|
protected |
FileHandlerObject(int handle,
java.io.File file)
|
Method Summary | |
---|---|
protected java.io.File |
getFile()
Gets the File object of the file represented by FileHandleObject |
protected java.lang.String |
getFileName()
Get the file name represented by FileHandleObject |
protected long |
getFileTransferRate()
Gets the file transfer rate in seconds. |
protected int |
getHandle()
Gets the handle number |
protected java.nio.ByteBuffer |
read(int numberOfBytes)
Read a number of bytes from file |
protected boolean |
seekFile(long offset,
byte seekType)
Seek to a location withing the file... |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected FileHandlerObject(int handle, java.io.File file)
Method Detail |
---|
protected java.nio.ByteBuffer read(int numberOfBytes)
numberOfBytes
- the number of bytes to read
protected boolean seekFile(long offset, byte seekType)
offset
- an amount to seek from the SeekTypeseekType
- (0 = forward from the beginning of the file, 1 = backward from
the end of the file, 2 = forward from the current position, 3 =
backwards from the current position)
protected java.lang.String getFileName()
protected java.io.File getFile()
protected int getHandle()
protected long getFileTransferRate()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |