Package com.rabbitmq.client.impl
Class MethodArgumentWriter
java.lang.Object
com.rabbitmq.client.impl.MethodArgumentWriter
Generates AMQP wire-protocol encoded arguments. Methods on this
object are usually called from autogenerated code.
-
Constructor Summary
ConstructorDescriptionConstructs a MethodArgumentWriter targeting the given DataOutputStream. -
Method Summary
Modifier and TypeMethodDescriptionvoid
flush()
Public API - call this to ensure all accumulated argument values are correctly written to the output stream.final void
writeBit
(boolean b) Public API - encodes a boolean/bit argument.final void
writeLong
(int l) Public API - encodes an integer argument.final void
writeLonglong
(long ll) Public API - encodes a long integer argument.final void
writeLongstr
(LongString str) Public API - encodes a long string argument from a LongString.final void
writeLongstr
(String str) Public API - encodes a long string argument from a String.final void
writeOctet
(byte octet) Public API - encodes an octet argument from a byte.final void
writeOctet
(int octet) Public API - encodes an octet argument from an int.final void
writeShort
(int s) Public API - encodes a short integer argument.final void
writeShortstr
(String str) Public API - encodes a short string argument.final void
writeTable
(Map<String, Object> table) Public API - encodes a table argument.final void
writeTimestamp
(Date timestamp) Public API - encodes a timestamp argument.
-
Constructor Details
-
MethodArgumentWriter
Constructs a MethodArgumentWriter targeting the given DataOutputStream.
-
-
Method Details
-
writeShortstr
Public API - encodes a short string argument.- Throws:
IOException
-
writeLongstr
Public API - encodes a long string argument from a LongString.- Throws:
IOException
-
writeLongstr
Public API - encodes a long string argument from a String.- Throws:
IOException
-
writeShort
Public API - encodes a short integer argument.- Throws:
IOException
-
writeLong
Public API - encodes an integer argument.- Throws:
IOException
-
writeLonglong
Public API - encodes a long integer argument.- Throws:
IOException
-
writeBit
Public API - encodes a boolean/bit argument.- Throws:
IOException
-
writeTable
Public API - encodes a table argument.- Throws:
IOException
-
writeOctet
Public API - encodes an octet argument from an int.- Throws:
IOException
-
writeOctet
Public API - encodes an octet argument from a byte.- Throws:
IOException
-
writeTimestamp
Public API - encodes a timestamp argument.- Throws:
IOException
-
flush
Public API - call this to ensure all accumulated argument values are correctly written to the output stream.- Throws:
IOException
-