|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.etill.framework.io.FrameworkDataStream
This class defines the default data stream interface for the Commerce Payments framework. The format of data communicated throught this stream is that of a length and value pair. The basic syntax of this message is: length = Integer representing size of message (value portion). value = A sequence of bytes representing the message but limited to the size specified by the length field.
Constructor Summary | |
---|---|
FrameworkDataStream()
Default Constructor . |
Method Summary | |
---|---|
void |
closeConnection()
Deletes the logical connection associated with this object. |
String |
getClassName()
getClassName() . |
Socket |
getSocket()
getSocket() |
Object |
read()
read() This method just opens an InputStream and converts the data to a byte array. |
void |
setClassName(String name)
setClassName() . |
void |
setConnection(Object o)
An ETillConnection object needs to store an instance of the logical connection for it's associated ComPoint. |
String |
toString()
toString() |
Object |
write(Object message)
Writes an Object to the ComPoint associated with the ETillConnection instance. |
Object |
writeErrorResponse(Object message)
Writes an error message to the ComPoint associated with the ETillConnection instance. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public FrameworkDataStream()
Method Detail |
public void setClassName(String name)
public String getClassName()
public String toString()
toString
in class Object
public Socket getSocket()
public void setConnection(Object o) throws IOException
setConnection
in interface ETillConnection
public Object read() throws IOException
read
in interface ETillConnection
public Object write(Object message) throws IOException
write
in interface ETillConnection
tc
- Object to write. Assumed to be a byte array.public Object writeErrorResponse(Object message) throws IOException
writeErrorResponse
in interface ETillConnection
tc
- Object to write. Assumed to be a byte array.public void closeConnection() throws IOException
closeConnection
in interface ETillConnection
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |