|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.sun.emp.cci.eci.GenericRecord
A generic record that can be used as input to an ECI interaction and is returned as an output of an interaction.
This record inplements the Streamable interface to
allow its use by the ECI interaction.
Access to the data in the record is provided via the getBytes()
and toString() methods.
ECIInteraction| Constructor Summary | |
GenericRecord()
Constructor. |
|
GenericRecord(byte[] ba)
Constructor providing initial data. |
|
| Method Summary | |
Object |
clone()
|
boolean |
equals(Object o)
|
byte[] |
getBytes()
Get the bytes of this record. |
String |
getRecordName()
|
String |
getRecordShortDescription()
|
void |
read(InputStream is)
|
void |
setRecordName(String n)
|
void |
setRecordShortDescription(String n)
|
String |
toString()
|
void |
write(OutputStream os)
|
| Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface javax.resource.cci.Record |
hashCode |
| Constructor Detail |
public GenericRecord()
public GenericRecord(byte[] ba)
ba - The initial data in the form of a byte array.
It is valid to call this constructor with null.| Method Detail |
public String getRecordName()
getRecordName in interface Recordpublic void setRecordName(String n)
setRecordName in interface Recordpublic String getRecordShortDescription()
getRecordShortDescription in interface Recordpublic void setRecordShortDescription(String n)
setRecordShortDescription in interface Record
public Object clone()
throws CloneNotSupportedException
clone in interface Recordclone in class ObjectCloneNotSupportedExceptionpublic String toString()
toString in class Objectpublic boolean equals(Object o)
equals in interface Recordequals in class Objectpublic byte[] getBytes()
This returns the actual bytes, not a copy of them. Thus changes to the returned array will result in the record actually changing.
public void read(InputStream is)
throws IOException
read in interface StreamableIOException
public void write(OutputStream os)
throws IOException
write in interface StreamableIOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||