com.rabbitmq.client.impl
Class AMQContentHeader

java.lang.Object
  extended by com.rabbitmq.client.impl.AMQContentHeader
All Implemented Interfaces:
ContentHeader, java.lang.Cloneable
Direct Known Subclasses:
AMQBasicProperties, AMQFileProperties, AMQStreamProperties, AMQTestProperties, AMQTunnelProperties

public abstract class AMQContentHeader
extends java.lang.Object
implements ContentHeader

Implementation of ContentHeader - specialized by autogenerated code in AMQP.java.


Constructor Summary
AMQContentHeader()
           
 
Method Summary
 void appendPropertyDebugStringTo(java.lang.StringBuffer acc)
          Public API - A debugging utility - enable properties to be appended to a string buffer for use as trace messages.
 java.lang.Object clone()
           
 long readFrom(java.io.DataInputStream in)
          Private API - Called by AMQChannel.handleFrame(com.rabbitmq.client.impl.Frame).
abstract  void readPropertiesFrom(ContentHeaderPropertyReader reader)
          Private API - Autogenerated reader for this header
 Frame toFrame(int channelNumber, long bodySize)
           
 java.lang.String toString()
           
abstract  void writePropertiesTo(ContentHeaderPropertyWriter writer)
          Private API - Autogenerated writer for this header
 void writeTo(java.io.DataOutputStream out, long bodySize)
          Private API - Called by AMQCommand.transmit(com.rabbitmq.client.impl.AMQChannel)
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.rabbitmq.client.ContentHeader
getClassId, getClassName
 

Constructor Detail

AMQContentHeader

public AMQContentHeader()
Method Detail

readFrom

public long readFrom(java.io.DataInputStream in)
              throws java.io.IOException
Private API - Called by AMQChannel.handleFrame(com.rabbitmq.client.impl.Frame). Parses the header frame.

Throws:
java.io.IOException

writeTo

public void writeTo(java.io.DataOutputStream out,
                    long bodySize)
             throws java.io.IOException
Private API - Called by AMQCommand.transmit(com.rabbitmq.client.impl.AMQChannel)

Throws:
java.io.IOException

readPropertiesFrom

public abstract void readPropertiesFrom(ContentHeaderPropertyReader reader)
                                 throws java.io.IOException
Private API - Autogenerated reader for this header

Throws:
java.io.IOException

writePropertiesTo

public abstract void writePropertiesTo(ContentHeaderPropertyWriter writer)
                                throws java.io.IOException
Private API - Autogenerated writer for this header

Throws:
java.io.IOException

appendPropertyDebugStringTo

public void appendPropertyDebugStringTo(java.lang.StringBuffer acc)
Public API - A debugging utility - enable properties to be appended to a string buffer for use as trace messages.

Specified by:
appendPropertyDebugStringTo in interface ContentHeader
Parameters:
acc - a place to append the properties as a string

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

toFrame

public Frame toFrame(int channelNumber,
                     long bodySize)
              throws java.io.IOException
Throws:
java.io.IOException

clone

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