public class FieldTable extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
FieldTable.FieldTableElementProcessor |
| Constructor and Description |
|---|
FieldTable() |
FieldTable(boolean strictAMQP) |
FieldTable(byte[] encodedForm,
int offset,
int length) |
FieldTable(DataInput buffer,
long length)
Construct a new field table.
|
public FieldTable()
public FieldTable(boolean strictAMQP)
public FieldTable(DataInput buffer, long length) throws IOException
buffer - the buffer from which to read data. The length byte must be read alreadylength - the length of the field table. Must be great than 0.IOException - if there is an issue reading the bufferpublic FieldTable(byte[] encodedForm,
int offset,
int length)
public boolean isClean()
public AMQTypedValue getProperty(AMQShortString string)
public Boolean getBoolean(AMQShortString string)
public Byte getByte(AMQShortString string)
public Short getShort(AMQShortString string)
public Integer getInteger(AMQShortString string)
public Long getLong(AMQShortString string)
public Float getFloat(AMQShortString string)
public Double getDouble(AMQShortString string)
public String getString(AMQShortString string)
public Character getCharacter(AMQShortString string)
public byte[] getBytes(String string)
public byte[] getBytes(AMQShortString string)
public FieldTable getFieldTable(String string)
string - The name of the parameter to get the associated FieldTable value for.public FieldTable getFieldTable(AMQShortString string)
string - The name of the parameter to get the associated FieldTable value for.public Object getObject(AMQShortString string)
public Long getTimestamp(AMQShortString name)
public BigDecimal getDecimal(AMQShortString propertyName)
public Object setBoolean(AMQShortString string, Boolean b)
public Object setByte(AMQShortString string, Byte b)
public Object setShort(AMQShortString string, Short i)
public Object setInteger(AMQShortString string, int i)
public Object setLong(AMQShortString string, long l)
public Object setFloat(AMQShortString string, Float v)
public Object setDouble(AMQShortString string, Double v)
public Object setAsciiString(AMQShortString string, String value)
public Object setString(AMQShortString string, String value)
public Object setChar(AMQShortString string, char c)
public Object setFieldArray(String string, Collection<?> collection)
public Object setFieldArray(AMQShortString string, Collection<?> collection)
public Object setBytes(AMQShortString string, byte[] bytes)
public Object setBytes(AMQShortString string, byte[] bytes, int start, int length)
public Object setTimestamp(AMQShortString string, long datetime)
public Object setDecimal(AMQShortString string, BigDecimal decimal)
public Object setVoid(AMQShortString string)
public Object setFieldTable(String string, FieldTable ftValue)
string - The name of the parameter to store in the table.ftValue - The field table value to associate with the parameter name.public Object setFieldTable(AMQShortString string, FieldTable ftValue)
string - The name of the parameter to store in the table.ftValue - The field table value to associate with the parameter name.public Object setObject(AMQShortString string, Object object)
public boolean isNullStringValue(String name)
public Enumeration getPropertyNames()
public boolean propertyExists(AMQShortString propertyName)
public boolean propertyExists(String propertyName)
public boolean itemExists(AMQShortString propertyName)
public boolean itemExists(String string)
protected static void checkIdentiferFormat(AMQShortString propertyName)
public void writeToBuffer(DataOutput buffer) throws IOException
IOExceptionpublic byte[] getDataAsBytes()
public long getEncodedSize()
public void addAll(FieldTable fieldTable)
public static Map<String,Object> convertToMap(FieldTable fieldTable)
public Object processOverElements(FieldTable.FieldTableElementProcessor processor)
public int size()
public boolean isEmpty()
public boolean containsKey(AMQShortString key)
public boolean containsKey(String key)
public Iterator<Map.Entry<AMQShortString,AMQTypedValue>> iterator()
public Object get(AMQShortString key)
public Object put(AMQShortString key, Object value)
public Object remove(AMQShortString key)
public AMQTypedValue removeKey(AMQShortString key)
public void clear()
public Set<AMQShortString> keySet()
public static FieldTable convertToFieldTable(Map<String,Object> map)
Copyright © 2006–2015 The Apache Software Foundation. All rights reserved.