|
|||||||||
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 Record
public void setRecordName(String n)
setRecordName
in interface Record
public String getRecordShortDescription()
getRecordShortDescription
in interface Record
public void setRecordShortDescription(String n)
setRecordShortDescription
in interface Record
public Object clone() throws CloneNotSupportedException
clone
in interface Record
clone
in class Object
CloneNotSupportedException
public String toString()
toString
in class Object
public boolean equals(Object o)
equals
in interface Record
equals
in class Object
public 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 Streamable
IOException
public void write(OutputStream os) throws IOException
write
in interface Streamable
IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |