org.apache.qpid.proton.codec
Interface Data


public interface Data


Nested Class Summary
static class Data.DataType
           
 
Method Summary
 void append(Data src)
           
 void appendn(Data src, int limit)
           
 void clear()
           
 void copy(Data src)
           
 long decode(java.nio.ByteBuffer buf)
           
 Binary encode()
           
 long encode(java.nio.ByteBuffer buf)
           
 boolean enter()
           
 boolean exit()
           
 void free()
           
 long getArray()
           
 Data.DataType getArrayType()
           
 Binary getBinary()
           
 boolean getBoolean()
           
 byte getByte()
           
 int getChar()
           
 Decimal128 getDecimal128()
           
 Decimal32 getDecimal32()
           
 Decimal64 getDecimal64()
           
 DescribedType getDescribedType()
           
 double getDouble()
           
 float getFloat()
           
 int getInt()
           
 java.lang.Object[] getJavaArray()
           
 java.util.List<java.lang.Object> getJavaList()
           
 java.util.Map<java.lang.Object,java.lang.Object> getJavaMap()
           
 long getList()
           
 long getLong()
           
 long getMap()
           
 java.lang.Object getObject()
           
 short getShort()
           
 java.lang.String getString()
           
 Symbol getSymbol()
           
 java.util.Date getTimestamp()
           
 UnsignedByte getUnsignedByte()
           
 UnsignedInteger getUnsignedInteger()
           
 UnsignedLong getUnsignedLong()
           
 UnsignedShort getUnsignedShort()
           
 java.util.UUID getUUID()
           
 boolean isArrayDescribed()
           
 boolean isDescribed()
           
 boolean isNull()
           
 boolean lookup(java.lang.String name)
           
 void narrow()
           
 Data.DataType next()
           
 Data.DataType prev()
           
 void putArray(boolean described, Data.DataType type)
           
 void putBinary(Binary bytes)
           
 void putBinary(byte[] bytes)
           
 void putBoolean(boolean b)
           
 void putByte(byte b)
           
 void putChar(int c)
           
 void putDecimal128(Decimal128 d)
           
 void putDecimal32(Decimal32 d)
           
 void putDecimal64(Decimal64 d)
           
 void putDescribed()
           
 void putDescribedType(DescribedType dt)
           
 void putDouble(double d)
           
 void putFloat(float f)
           
 void putInt(int i)
           
 void putJavaArray(java.lang.Object[] array)
           
 void putJavaList(java.util.List<java.lang.Object> list)
           
 void putJavaMap(java.util.Map<java.lang.Object,java.lang.Object> map)
           
 void putList()
           
 void putLong(long l)
           
 void putMap()
           
 void putNull()
           
 void putObject(java.lang.Object o)
           
 void putShort(short s)
           
 void putString(java.lang.String string)
           
 void putSymbol(Symbol symbol)
           
 void putTimestamp(java.util.Date t)
           
 void putUnsignedByte(UnsignedByte ub)
           
 void putUnsignedInteger(UnsignedInteger ui)
           
 void putUnsignedLong(UnsignedLong ul)
           
 void putUnsignedShort(UnsignedShort us)
           
 void putUUID(java.util.UUID u)
           
 void rewind()
           
 long size()
           
 Data.DataType type()
           
 void widen()
           
 

Method Detail

free

void free()

clear

void clear()

size

long size()

rewind

void rewind()

next

Data.DataType next()

prev

Data.DataType prev()

enter

boolean enter()

exit

boolean exit()

lookup

boolean lookup(java.lang.String name)

type

Data.DataType type()

encode

Binary encode()

encode

long encode(java.nio.ByteBuffer buf)

decode

long decode(java.nio.ByteBuffer buf)

putList

void putList()

putMap

void putMap()

putArray

void putArray(boolean described,
              Data.DataType type)

putDescribed

void putDescribed()

putNull

void putNull()

putBoolean

void putBoolean(boolean b)

putUnsignedByte

void putUnsignedByte(UnsignedByte ub)

putByte

void putByte(byte b)

putUnsignedShort

void putUnsignedShort(UnsignedShort us)

putShort

void putShort(short s)

putUnsignedInteger

void putUnsignedInteger(UnsignedInteger ui)

putInt

void putInt(int i)

putChar

void putChar(int c)

putUnsignedLong

void putUnsignedLong(UnsignedLong ul)

putLong

void putLong(long l)

putTimestamp

void putTimestamp(java.util.Date t)

putFloat

void putFloat(float f)

putDouble

void putDouble(double d)

putDecimal32

void putDecimal32(Decimal32 d)

putDecimal64

void putDecimal64(Decimal64 d)

putDecimal128

void putDecimal128(Decimal128 d)

putUUID

void putUUID(java.util.UUID u)

putBinary

void putBinary(Binary bytes)

putBinary

void putBinary(byte[] bytes)

putString

void putString(java.lang.String string)

putSymbol

void putSymbol(Symbol symbol)

putObject

void putObject(java.lang.Object o)

putJavaMap

void putJavaMap(java.util.Map<java.lang.Object,java.lang.Object> map)

putJavaList

void putJavaList(java.util.List<java.lang.Object> list)

putJavaArray

void putJavaArray(java.lang.Object[] array)

putDescribedType

void putDescribedType(DescribedType dt)

getList

long getList()

getMap

long getMap()

getArray

long getArray()

isArrayDescribed

boolean isArrayDescribed()

getArrayType

Data.DataType getArrayType()

isDescribed

boolean isDescribed()

isNull

boolean isNull()

getBoolean

boolean getBoolean()

getUnsignedByte

UnsignedByte getUnsignedByte()

getByte

byte getByte()

getUnsignedShort

UnsignedShort getUnsignedShort()

getShort

short getShort()

getUnsignedInteger

UnsignedInteger getUnsignedInteger()

getInt

int getInt()

getChar

int getChar()

getUnsignedLong

UnsignedLong getUnsignedLong()

getLong

long getLong()

getTimestamp

java.util.Date getTimestamp()

getFloat

float getFloat()

getDouble

double getDouble()

getDecimal32

Decimal32 getDecimal32()

getDecimal64

Decimal64 getDecimal64()

getDecimal128

Decimal128 getDecimal128()

getUUID

java.util.UUID getUUID()

getBinary

Binary getBinary()

getString

java.lang.String getString()

getSymbol

Symbol getSymbol()

getObject

java.lang.Object getObject()

getJavaMap

java.util.Map<java.lang.Object,java.lang.Object> getJavaMap()

getJavaList

java.util.List<java.lang.Object> getJavaList()

getJavaArray

java.lang.Object[] getJavaArray()

getDescribedType

DescribedType getDescribedType()

copy

void copy(Data src)

append

void append(Data src)

appendn

void appendn(Data src,
             int limit)

narrow

void narrow()

widen

void widen()