org.jboss.blacktie.jatmibroker.xatmi
Class Buffer

java.lang.Object
  extended by org.jboss.blacktie.jatmibroker.xatmi.Buffer
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
X_C_TYPE, X_COMMON, X_OCTET

public abstract class Buffer
extends java.lang.Object
implements java.io.Serializable

This class encapsulates the response from the remote service and the return code

See Also:
Serialized Form

Field Summary
static int BYTE_SIZE
          The agreed size of a byte.
static int DOUBLE_SIZE
          The agreed size of a double.
static int FLOAT_SIZE
          The agreed size of a float.
static int INT_SIZE
          The agreed size of a int.
static int LONG_SIZE
          The agreed size of a long.
static int SHORT_SIZE
          The agreed size of a short.
 
Method Summary
 void clear()
          Clear the content of the buffer
protected  java.lang.Object getAttributeValue(java.lang.String key, java.lang.Class type)
           
 java.util.Map<java.lang.String,java.lang.Class> getFormat()
           
protected  byte[] getRawData()
           
 java.lang.String getSubtype()
          Get the subtype
 java.lang.String getType()
          Get the type
protected  void setAttributeValue(java.lang.String key, java.lang.Class type, java.lang.Object value)
           
protected  void setRawData(byte[] bytes)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BYTE_SIZE

public static final int BYTE_SIZE
The agreed size of a byte.

See Also:
Constant Field Values

LONG_SIZE

public static final int LONG_SIZE
The agreed size of a long.

See Also:
Constant Field Values

INT_SIZE

public static final int INT_SIZE
The agreed size of a int.

See Also:
Constant Field Values

SHORT_SIZE

public static final int SHORT_SIZE
The agreed size of a short.

See Also:
Constant Field Values

FLOAT_SIZE

public static final int FLOAT_SIZE
The agreed size of a float.

See Also:
Constant Field Values

DOUBLE_SIZE

public static final int DOUBLE_SIZE
The agreed size of a double.

See Also:
Constant Field Values
Method Detail

getFormat

public java.util.Map<java.lang.String,java.lang.Class> getFormat()

getType

public java.lang.String getType()
Get the type

Returns:
The type

getSubtype

public java.lang.String getSubtype()
Get the subtype

Returns:
The subtype

clear

public void clear()
Clear the content of the buffer


getAttributeValue

protected java.lang.Object getAttributeValue(java.lang.String key,
                                             java.lang.Class type)
                                      throws ConnectionException
Throws:
ConnectionException

setAttributeValue

protected void setAttributeValue(java.lang.String key,
                                 java.lang.Class type,
                                 java.lang.Object value)
                          throws ConnectionException
Throws:
ConnectionException

setRawData

protected void setRawData(byte[] bytes)

getRawData

protected byte[] getRawData()


Copyright © 2009. All Rights Reserved.