Package com.rabbitmq.client.impl
Class ValueWriter
java.lang.Object
com.rabbitmq.client.impl.ValueWriter
Helper class to generate AMQP wire-protocol encoded values.
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidflush()Public API - call this to ensure all accumulated values are correctly written to the output stream.final voidwriteArray(Object[] value) final voidwriteArray(List<?> value) final voidwriteFieldValue(Object value) final voidwriteLong(int l) Public API - encodes an integer.final voidwriteLonglong(long ll) Public API - encodes a long integer.final voidwriteLongstr(LongString str) Public API - encodes a long string from a LongString.final voidwriteLongstr(String str) Public API - encodes a long string from a String.final voidwriteOctet(byte octet) Public API - encodes an octet from a byte.final voidwriteOctet(int octet) Public API - encodes an octet from an int.final voidwriteShort(int s) Public API - encodes a short integer.final voidwriteShortstr(String str) Public API - encodes a short string.final voidwriteTable(Map<String, Object> table) Public API - encodes a table.final voidwriteTimestamp(Date timestamp) Public API - encodes a timestamp. 
- 
Constructor Details
- 
ValueWriter
 
 - 
 - 
Method Details
- 
writeShortstr
Public API - encodes a short string.- Throws:
 IOException
 - 
writeLongstr
Public API - encodes a long string from a LongString.- Throws:
 IOException
 - 
writeLongstr
Public API - encodes a long string from a String.- Throws:
 IOException
 - 
writeShort
Public API - encodes a short integer.- Throws:
 IOException
 - 
writeLong
Public API - encodes an integer.- Throws:
 IOException
 - 
writeLonglong
Public API - encodes a long integer.- Throws:
 IOException
 - 
writeTable
Public API - encodes a table.- Throws:
 IOException
 - 
writeFieldValue
- Throws:
 IOException
 - 
writeArray
- Throws:
 IOException
 - 
writeArray
- Throws:
 IOException
 - 
writeOctet
Public API - encodes an octet from an int.- Throws:
 IOException
 - 
writeOctet
Public API - encodes an octet from a byte.- Throws:
 IOException
 - 
writeTimestamp
Public API - encodes a timestamp.- Throws:
 IOException
 - 
flush
Public API - call this to ensure all accumulated values are correctly written to the output stream.- Throws:
 IOException
 
 -