|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.virtualbox_4_2.IUnknown
org.virtualbox_4_2.IFile
public class IFile
Abstract parent interface for files handled by VirtualBox. Interface ID: {B702A560-6139-4A8E-A892-BBF14B97BF97}
Field Summary |
---|
Fields inherited from class org.virtualbox_4_2.IUnknown |
---|
obj, port |
Constructor Summary | |
---|---|
IFile(java.lang.String wrapped,
org.virtualbox_4_2.jaxws.VboxPortType port)
|
Method Summary | |
---|---|
void |
close()
Closes this file. |
java.lang.Long |
getCreationMode()
The creation mode. |
java.lang.Long |
getDisposition()
The disposition mode. |
java.lang.String |
getFileName()
Full path of the actual file name of this file. |
java.lang.Long |
getInitialSize()
The initial size in bytes when opened. |
java.lang.Long |
getOffset()
Current read/write offset in bytes. |
java.lang.Long |
getOpenMode()
The open mode. |
IFsObjInfo |
queryInfo()
Queries information about this file. |
static IFile |
queryInterface(IUnknown obj)
|
byte[] |
read(java.lang.Long toRead,
java.lang.Long timeoutMS)
Reads data from this file. |
byte[] |
readAt(java.lang.Long offset,
java.lang.Long toRead,
java.lang.Long timeoutMS)
Reads data from an offset of this file. |
void |
seek(java.lang.Long offset,
FileSeekType whence)
Changes the read and write position of this file. |
void |
setACL(java.lang.String acl)
Sets the ACL of this file. |
java.lang.Long |
write(byte[] data,
java.lang.Long timeoutMS)
Writes bytes to this file. |
java.lang.Long |
writeAt(java.lang.Long offset,
byte[] data,
java.lang.Long timeoutMS)
Writes bytes at a certain offset to this file. |
Methods inherited from class org.virtualbox_4_2.IUnknown |
---|
getRemoteWSPort, getWrapped, releaseRemote |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IFile(java.lang.String wrapped, org.virtualbox_4_2.jaxws.VboxPortType port)
Method Detail |
---|
public java.lang.Long getCreationMode()
public java.lang.Long getDisposition()
public java.lang.String getFileName()
public java.lang.Long getInitialSize()
public java.lang.Long getOpenMode()
public java.lang.Long getOffset()
public static IFile queryInterface(IUnknown obj)
public void close()
public IFsObjInfo queryInfo()
IFsObjInfo
.
Expected result codes:
E_NOTIMPL | The method is not implemented yet. |
public byte[] read(java.lang.Long toRead, java.lang.Long timeoutMS)
toRead
- Number of bytes to read.timeoutMS
- Timeout (in ms) to wait for the operation to complete.
Pass 0 for an infinite timeout.
E_NOTIMPL | The method is not implemented yet. |
public byte[] readAt(java.lang.Long offset, java.lang.Long toRead, java.lang.Long timeoutMS)
offset
- Offset in bytes to start reading.toRead
- Number of bytes to read.timeoutMS
- Timeout (in ms) to wait for the operation to complete.
Pass 0 for an infinite timeout.
E_NOTIMPL | The method is not implemented yet. |
public void seek(java.lang.Long offset, FileSeekType whence)
offset
- Offset to seek.whence
- Seek mode; see FileSeekType
for more information.
Expected result codes:
E_NOTIMPL | The method is not implemented yet. |
public void setACL(java.lang.String acl)
acl
- ACL string to set.
Expected result codes:
E_NOTIMPL | The method is not implemented yet. |
public java.lang.Long write(byte[] data, java.lang.Long timeoutMS)
data
- Array of bytes to write. The size of the array also specifies
how much to write.timeoutMS
- Timeout (in ms) to wait for the operation to complete.
Pass 0 for an infinite timeout.
public java.lang.Long writeAt(java.lang.Long offset, byte[] data, java.lang.Long timeoutMS)
offset
- Offset in bytes to start writing.data
- Array of bytes to write. The size of the array also specifies
how much to write.timeoutMS
- Timeout (in ms) to wait for the operation to complete.
Pass 0 for an infinite timeout.
E_NOTIMPL | The method is not implemented yet. |
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |