public class

ValueWriter

extends Object
java.lang.Object
   ↳ com.rabbitmq.client.impl.ValueWriter

Class Overview

Helper class to generate AMQP wire-protocol encoded values.

Summary

Public Constructors
ValueWriter(DataOutputStream out)
Public Methods
void flush()
Public API - call this to ensure all accumulated values are correctly written to the output stream.
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(int octet)
Public API - encodes an octet from an int.
final void writeOctet(byte octet)
Public API - encodes an octet from a byte.
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<StringObject> table)
Public API - encodes a table.
final void writeTimestamp(Date timestamp)
Public API - encodes a timestamp.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public ValueWriter (DataOutputStream out)

Public Methods

public void flush ()

Public API - call this to ensure all accumulated values are correctly written to the output stream.

Throws
IOException

public final void writeArray (List<?> value)

Throws
IOException

public final void writeFieldValue (Object value)

Throws
IOException

public final void writeLong (int l)

Public API - encodes an integer.

Throws
IOException

public final void writeLonglong (long ll)

Public API - encodes a long integer.

Throws
IOException

public final void writeLongstr (LongString str)

Public API - encodes a long string from a LongString.

Throws
IOException

public final void writeLongstr (String str)

Public API - encodes a long string from a String.

Throws
IOException

public final void writeOctet (int octet)

Public API - encodes an octet from an int.

Throws
IOException

public final void writeOctet (byte octet)

Public API - encodes an octet from a byte.

Throws
IOException

public final void writeShort (int s)

Public API - encodes a short integer.

Throws
IOException

public final void writeShortstr (String str)

Public API - encodes a short string.

Throws
IOException

public final void writeTable (Map<StringObject> table)

Public API - encodes a table.

Throws
IOException

public final void writeTimestamp (Date timestamp)

Public API - encodes a timestamp.

Throws
IOException