public class ODSReadTransfer extends java.lang.Object implements ODSReadTransfer
Modifier and Type | Field and Description |
---|---|
protected static java.util.HashMap<java.lang.String,ODSReadTransfer> |
activeRead |
protected long |
cObjPtr |
protected java.io.File |
file |
protected java.lang.String |
filename |
protected long |
filePos |
protected java.io.FileInputStream |
fis |
protected ODSFile |
odsFile |
READALL
Constructor and Description |
---|
ODSReadTransfer() |
ODSReadTransfer(long cObjPtr) |
ODSReadTransfer(java.lang.String filename,
ODSFile odsFile) |
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.Object |
_get_interface_def() |
org.omg.CORBA.Policy |
_get_policy(int policy_type) |
int |
_hash(int maximum) |
boolean |
_is_a(java.lang.String repositoryIdentifier) |
boolean |
_is_equivalent(org.omg.CORBA.Object other) |
boolean |
_non_existent() |
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 |
checkRead(java.lang.String filename)
Check if the file is open for reading.
|
void |
close()
Close this ODSReadTransfer interface.
|
boolean |
equals(java.lang.Object obj) |
protected void |
finalize() |
java.lang.String |
getFilename()
Get the filename of the read transfer.
|
byte[] |
getOctetSeq(int maxOctets)
Read a sequence of bytes from the file.
|
T_LONGLONG |
getPosition()
Retrieve the current position of the read pointer in the file.
|
T_LONGLONG |
skipOctets(T_LONGLONG numOctets)
Skip a number of bytes while reading the file.
|
protected static java.util.HashMap<java.lang.String,ODSReadTransfer> activeRead
protected java.lang.String filename
protected java.io.File file
protected java.io.FileInputStream fis
protected long filePos
protected long cObjPtr
protected ODSFile odsFile
public ODSReadTransfer()
public ODSReadTransfer(long cObjPtr)
public ODSReadTransfer(java.lang.String filename, ODSFile odsFile)
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public static boolean checkRead(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.Object
public 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.Object
public org.omg.CORBA.Object _duplicate()
_duplicate
in interface org.omg.CORBA.Object
public org.omg.CORBA.DomainManager[] _get_domain_managers()
_get_domain_managers
in interface org.omg.CORBA.Object
public org.omg.CORBA.Object _get_interface_def()
_get_interface_def
in interface org.omg.CORBA.Object
public org.omg.CORBA.Policy _get_policy(int policy_type)
_get_policy
in interface org.omg.CORBA.Object
public int _hash(int maximum)
_hash
in interface org.omg.CORBA.Object
public boolean _is_equivalent(org.omg.CORBA.Object other)
_is_equivalent
in interface org.omg.CORBA.Object
public void _release()
_release
in interface org.omg.CORBA.Object
public org.omg.CORBA.Request _request(java.lang.String operation)
_request
in interface org.omg.CORBA.Object
public 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.Object
public void close() throws AoException
close
in interface ODSReadTransferOperations
AoException
- with the following possible error codes:
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVEpublic T_LONGLONG getPosition() throws AoException
getPosition
in interface ODSReadTransferOperations
AoException
- with the following possible error codes:
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVEpublic byte[] getOctetSeq(int maxOctets) throws AoException
getOctetSeq
in interface ODSReadTransferOperations
maxOctets
- The maximum number of bytes to be returned by one
method call.AoException
- with the following possible error codes:
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVE
AO_SYSTEM_PROBLEM
AO_BAD_PARAMETERpublic T_LONGLONG skipOctets(T_LONGLONG numOctets) throws AoException
skipOctets
in interface ODSReadTransferOperations
numOctets
- The number of bytes to be skipped.AoException
- with the following possible error codes:
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVE
AO_BAD_PARAMETERpublic java.lang.String getFilename()
protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
public boolean _is_a(java.lang.String repositoryIdentifier)
_is_a
in interface org.omg.CORBA.Object
public boolean _non_existent()
_non_existent
in interface org.omg.CORBA.Object