Package com.rabbitmq.client.impl
Class ContentHeaderPropertyWriter
- java.lang.Object
-
- com.rabbitmq.client.impl.ContentHeaderPropertyWriter
-
public class ContentHeaderPropertyWriter extends java.lang.ObjectGenerates an AMQP wire-protocol packet from aContentHeader. Methods on this object are usually called from autogenerated code.
-
-
Field Summary
Fields Modifier and Type Field Description private intbitCountPosition within current flags wordprivate intflagWordCurrent flags word being accumulatedprivate ValueWriteroutAccumulates our output
-
Constructor Summary
Constructors Constructor Description ContentHeaderPropertyWriter(java.io.DataOutputStream out)Constructs a fresh ContentHeaderPropertyWriter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidemitFlagWord(boolean continuationBit)voidfinishPresence()voidwriteLong(java.lang.Integer l)voidwriteLonglong(java.lang.Long ll)voidwriteLongstr(LongString str)voidwriteLongstr(java.lang.String str)voidwriteOctet(int octet)voidwriteOctet(java.lang.Integer octet)voidwritePresence(boolean present)voidwriteShort(java.lang.Integer s)voidwriteShortstr(java.lang.String str)voidwriteTable(java.util.Map<java.lang.String,java.lang.Object> table)voidwriteTimestamp(java.util.Date timestamp)
-
-
-
Field Detail
-
out
private final ValueWriter out
Accumulates our output
-
flagWord
private int flagWord
Current flags word being accumulated
-
bitCount
private int bitCount
Position within current flags word
-
-
Method Detail
-
emitFlagWord
private void emitFlagWord(boolean continuationBit) throws java.io.IOException- Throws:
java.io.IOException
-
writePresence
public void writePresence(boolean present) throws java.io.IOException- Throws:
java.io.IOException
-
finishPresence
public void finishPresence() throws java.io.IOException- Throws:
java.io.IOException
-
writeShortstr
public void writeShortstr(java.lang.String str) throws java.io.IOException- Throws:
java.io.IOException
-
writeLongstr
public void writeLongstr(java.lang.String str) throws java.io.IOException- Throws:
java.io.IOException
-
writeLongstr
public void writeLongstr(LongString str) throws java.io.IOException
- Throws:
java.io.IOException
-
writeShort
public void writeShort(java.lang.Integer s) throws java.io.IOException- Throws:
java.io.IOException
-
writeLong
public void writeLong(java.lang.Integer l) throws java.io.IOException- Throws:
java.io.IOException
-
writeLonglong
public void writeLonglong(java.lang.Long ll) throws java.io.IOException- Throws:
java.io.IOException
-
writeTable
public void writeTable(java.util.Map<java.lang.String,java.lang.Object> table) throws java.io.IOException- Throws:
java.io.IOException
-
writeOctet
public void writeOctet(java.lang.Integer octet) throws java.io.IOException- Throws:
java.io.IOException
-
writeOctet
public void writeOctet(int octet) throws java.io.IOException- Throws:
java.io.IOException
-
writeTimestamp
public void writeTimestamp(java.util.Date timestamp) throws java.io.IOException- Throws:
java.io.IOException
-
-