public class ODSWriteTransfer extends ODSWriteTransferPOA implements ODSWriteTransfer
| Modifier and Type | Class and Description |
|---|---|
protected static class |
ODSWriteTransfer.ODSWriteTransferRef |
| Modifier and Type | Field and Description |
|---|---|
protected static java.util.HashMap<java.lang.String,ODSWriteTransfer> |
activeWrite |
protected AoSession |
aosObj |
protected java.io.File |
file |
protected java.lang.String |
filename |
protected long |
filePos |
protected java.io.FileOutputStream |
fos |
protected ODSFile |
odsFile |
| Constructor and Description |
|---|
ODSWriteTransfer() |
ODSWriteTransfer(AoSession aosObj,
java.lang.String filename,
ODSFile odsFile) |
ODSWriteTransfer(java.lang.String filename) |
| Modifier and Type | Method and Description |
|---|---|
org.omg.CORBA.Request |
_create_request(org.omg.CORBA.Context ctx,
java.lang.String operation,
org.omg.CORBA.NVList arg_list,
org.omg.CORBA.NamedValue result) |
org.omg.CORBA.Request |
_create_request(org.omg.CORBA.Context ctx,
java.lang.String operation,
org.omg.CORBA.NVList arg_list,
org.omg.CORBA.NamedValue result,
org.omg.CORBA.ExceptionList exclist,
org.omg.CORBA.ContextList ctxlist) |
org.omg.CORBA.Object |
_duplicate() |
org.omg.CORBA.DomainManager[] |
_get_domain_managers() |
org.omg.CORBA.Policy |
_get_policy(int policy_type) |
int |
_hash(int maximum) |
boolean |
_is_equivalent(org.omg.CORBA.Object other) |
void |
_release() |
org.omg.CORBA.Request |
_request(java.lang.String operation) |
org.omg.CORBA.Object |
_set_policy_override(org.omg.CORBA.Policy[] policies,
org.omg.CORBA.SetOverrideType set_add) |
static boolean |
checkWrite(java.lang.String filename)
Check if the file is open for writing.
|
void |
close()
(32000) Close this ODSWriteTransfer interface.
|
java.lang.String |
getFilename()
Get the filename of the write transfer.
|
static ODSWriteTransfer |
getInstance(AoSession aosObj,
java.lang.String filename,
ODSFile odsFile) |
T_LONGLONG |
getPosition()
(32002) Retrieve the current position of the write pointer in the file.
|
void |
openFile() |
void |
putOctectSeq(byte[] buffer)
(32001) Write a sequence of bytes to the file.
|
_all_interfaces, _invoke, _this, _this_default_POA, _get_delegate, _get_interface_def, _is_a, _non_existent, _object_id, _orb, _poa, _set_delegate, _this_object, _this_objectprotected static java.util.HashMap<java.lang.String,ODSWriteTransfer> activeWrite
protected AoSession aosObj
protected java.lang.String filename
protected java.io.File file
protected java.io.FileOutputStream fos
protected long filePos
protected ODSFile odsFile
public ODSWriteTransfer()
public ODSWriteTransfer(java.lang.String filename)
public void openFile()
throws AoException
AoExceptionpublic static ODSWriteTransfer getInstance(AoSession aosObj, java.lang.String filename, ODSFile odsFile)
public static boolean checkWrite(java.lang.String filename)
filename - the filenamepublic org.omg.CORBA.Request _create_request(org.omg.CORBA.Context ctx,
java.lang.String operation,
org.omg.CORBA.NVList arg_list,
org.omg.CORBA.NamedValue result)
_create_request in interface org.omg.CORBA.Objectpublic org.omg.CORBA.Request _create_request(org.omg.CORBA.Context ctx,
java.lang.String operation,
org.omg.CORBA.NVList arg_list,
org.omg.CORBA.NamedValue result,
org.omg.CORBA.ExceptionList exclist,
org.omg.CORBA.ContextList ctxlist)
_create_request in interface org.omg.CORBA.Objectpublic org.omg.CORBA.Object _duplicate()
_duplicate in interface org.omg.CORBA.Objectpublic org.omg.CORBA.DomainManager[] _get_domain_managers()
_get_domain_managers in interface org.omg.CORBA.Objectpublic org.omg.CORBA.Policy _get_policy(int policy_type)
_get_policy in interface org.omg.CORBA.Objectpublic int _hash(int maximum)
_hash in interface org.omg.CORBA.Objectpublic boolean _is_equivalent(org.omg.CORBA.Object other)
_is_equivalent in interface org.omg.CORBA.Objectpublic void _release()
_release in interface org.omg.CORBA.Objectpublic org.omg.CORBA.Request _request(java.lang.String operation)
_request in interface org.omg.CORBA.Objectpublic org.omg.CORBA.Object _set_policy_override(org.omg.CORBA.Policy[] policies,
org.omg.CORBA.SetOverrideType set_add)
_set_policy_override in interface org.omg.CORBA.Objectpublic void close()
throws AoException
close in interface ODSWriteTransferOperationsAoException - with the following possible error codes: AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM AO_NOT_IMPLEMENTED AO_NO_MEMORY
AO_SESSION_NOT_ACTIVEpublic void putOctectSeq(byte[] buffer)
throws AoException
putOctectSeq in interface ODSWriteTransferOperationsbuffer - The buffer containing the sequence of bytes that shall be
written to the file.AoException - with the following possible error codes: AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM AO_NOT_IMPLEMENTED AO_NO_MEMORY
AO_SESSION_NOT_ACTIVE AO_NO_MEMORY AO_SYSTEM_PROBLEMpublic T_LONGLONG getPosition() throws AoException
getPosition in interface ODSWriteTransferOperationsAoException - with the following possible error codes: AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM AO_NOT_IMPLEMENTED AO_NO_MEMORY
AO_SESSION_NOT_ACTIVEpublic java.lang.String getFilename()