Package com.rabbitmq.client.impl
Class MethodArgumentWriter
- java.lang.Object
-
- com.rabbitmq.client.impl.MethodArgumentWriter
-
public class MethodArgumentWriter extends Object
Generates AMQP wire-protocol encoded arguments. Methods on this object are usually called from autogenerated code.
-
-
Constructor Summary
Constructors Constructor Description MethodArgumentWriter(ValueWriter out)Constructs a MethodArgumentWriter targeting the given DataOutputStream.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidflush()Public API - call this to ensure all accumulated argument values are correctly written to the output stream.voidwriteBit(boolean b)Public API - encodes a boolean/bit argument.voidwriteLong(int l)Public API - encodes an integer argument.voidwriteLonglong(long ll)Public API - encodes a long integer argument.voidwriteLongstr(LongString str)Public API - encodes a long string argument from a LongString.voidwriteLongstr(String str)Public API - encodes a long string argument from a String.voidwriteOctet(byte octet)Public API - encodes an octet argument from a byte.voidwriteOctet(int octet)Public API - encodes an octet argument from an int.voidwriteShort(int s)Public API - encodes a short integer argument.voidwriteShortstr(String str)Public API - encodes a short string argument.voidwriteTable(Map<String,Object> table)Public API - encodes a table argument.voidwriteTimestamp(Date timestamp)Public API - encodes a timestamp argument.
-
-
-
Constructor Detail
-
MethodArgumentWriter
public MethodArgumentWriter(ValueWriter out)
Constructs a MethodArgumentWriter targeting the given DataOutputStream.
-
-
Method Detail
-
writeShortstr
public final void writeShortstr(String str) throws IOException
Public API - encodes a short string argument.- Throws:
IOException
-
writeLongstr
public final void writeLongstr(LongString str) throws IOException
Public API - encodes a long string argument from a LongString.- Throws:
IOException
-
writeLongstr
public final void writeLongstr(String str) throws IOException
Public API - encodes a long string argument from a String.- Throws:
IOException
-
writeShort
public final void writeShort(int s) throws IOExceptionPublic API - encodes a short integer argument.- Throws:
IOException
-
writeLong
public final void writeLong(int l) throws IOExceptionPublic API - encodes an integer argument.- Throws:
IOException
-
writeLonglong
public final void writeLonglong(long ll) throws IOExceptionPublic API - encodes a long integer argument.- Throws:
IOException
-
writeBit
public final void writeBit(boolean b) throws IOExceptionPublic API - encodes a boolean/bit argument.- Throws:
IOException
-
writeTable
public final void writeTable(Map<String,Object> table) throws IOException
Public API - encodes a table argument.- Throws:
IOException
-
writeOctet
public final void writeOctet(int octet) throws IOExceptionPublic API - encodes an octet argument from an int.- Throws:
IOException
-
writeOctet
public final void writeOctet(byte octet) throws IOExceptionPublic API - encodes an octet argument from a byte.- Throws:
IOException
-
writeTimestamp
public final void writeTimestamp(Date timestamp) throws IOException
Public API - encodes a timestamp argument.- Throws:
IOException
-
flush
public void flush() throws IOExceptionPublic API - call this to ensure all accumulated argument values are correctly written to the output stream.- Throws:
IOException
-
-