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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
flush()
Public API - call this to ensure all accumulated values are correctly written to the output stream.final void
writeArray
(Object[] value) final void
writeArray
(List<?> value) final void
writeFieldValue
(Object value) final void
writeLong
(int l) Public API - encodes an integer.final void
writeLonglong
(long ll) Public API - encodes a long integer.final void
writeLongstr
(LongString str) Public API - encodes a long string from a LongString.final void
writeLongstr
(String str) Public API - encodes a long string from a String.final void
writeOctet
(byte octet) Public API - encodes an octet from a byte.final void
writeOctet
(int octet) Public API - encodes an octet from an int.final void
writeShort
(int s) Public API - encodes a short integer.final void
writeShortstr
(String str) Public API - encodes a short string.final void
writeTable
(Map<String, Object> table) Public API - encodes a table.final void
writeTimestamp
(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
-