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
ConstructorsConstructorDescriptionConstructs a MethodArgumentWriter targeting the given DataOutputStream. -
Method Summary
Modifier and TypeMethodDescriptionvoidflush()Public API - call this to ensure all accumulated argument values are correctly written to the output stream.final voidwriteBit(boolean b) Public API - encodes a boolean/bit argument.final voidwriteLong(int l) Public API - encodes an integer argument.final voidwriteLonglong(long ll) Public API - encodes a long integer argument.final voidwriteLongstr(LongString str) Public API - encodes a long string argument from a LongString.final voidwriteLongstr(String str) Public API - encodes a long string argument from a String.final voidwriteOctet(byte octet) Public API - encodes an octet argument from a byte.final voidwriteOctet(int octet) Public API - encodes an octet argument from an int.final voidwriteShort(int s) Public API - encodes a short integer argument.final voidwriteShortstr(String str) Public API - encodes a short string argument.final voidwriteTable(Map<String, Object> table) Public API - encodes a table argument.final voidwriteTimestamp(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
-