org.springframework.jca.cci.core.support
Class CommAreaRecord

java.lang.Object
  extended by org.springframework.jca.cci.core.support.CommAreaRecord

public class CommAreaRecord
extends java.lang.Object

CCI Record implementation for a COMMAREA, holding a byte array.

Since:
1.2
Author:
Thierry Templier, Juergen Hoeller
See Also:
MappingCommAreaOperation

Field Summary
private  byte[] bytes
           
private  java.lang.String recordName
           
private  java.lang.String recordShortDescription
           
 
Constructor Summary
CommAreaRecord()
          Create a new CommAreaRecord.
CommAreaRecord(byte[] bytes)
          Create a new CommAreaRecord.
 
Method Summary
 java.lang.Object clone()
           
 java.lang.String getRecordName()
           
 java.lang.String getRecordShortDescription()
           
 void read(java.io.InputStream in)
           
 void setRecordName(java.lang.String recordName)
           
 void setRecordShortDescription(java.lang.String recordShortDescription)
           
 byte[] toByteArray()
           
 void write(java.io.OutputStream out)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

bytes

private byte[] bytes

recordName

private java.lang.String recordName

recordShortDescription

private java.lang.String recordShortDescription
Constructor Detail

CommAreaRecord

public CommAreaRecord()
Create a new CommAreaRecord.

See Also:
read(java.io.InputStream)

CommAreaRecord

public CommAreaRecord(byte[] bytes)
Create a new CommAreaRecord.

Parameters:
bytes - the bytes to fill the record with
Method Detail

setRecordName

public void setRecordName(java.lang.String recordName)

getRecordName

public java.lang.String getRecordName()

setRecordShortDescription

public void setRecordShortDescription(java.lang.String recordShortDescription)

getRecordShortDescription

public java.lang.String getRecordShortDescription()

read

public void read(java.io.InputStream in)
          throws java.io.IOException
Throws:
java.io.IOException

write

public void write(java.io.OutputStream out)
           throws java.io.IOException
Throws:
java.io.IOException

toByteArray

public byte[] toByteArray()

clone

public java.lang.Object clone()
Overrides:
clone in class java.lang.Object