public Object readObject(final Object defaultValue) { Object val = readObject(); return val == null ? defaultValue : val; }
public Object readObject(final Object defaultValue) { Object val = readObject(); return val == null ? defaultValue : val; }
@Override public Object readObject(final Object defaultValue) { Object val = readObject(); return val == null ? defaultValue : val; }
public Object readObject(final Object defaultValue) { Object val = readObject(); return val == null ? defaultValue : val; }
public Object readObject() { return decoder.readObject(); } }
public Object readObject() { return decoder.readObject(); } }
private Section readSection(ByteBuffer buffer, DecoderImpl decoder) { if (buffer.hasRemaining()) { return (Section) decoder.readObject(); } else { return null; } }
public Object[] readMultiple() { Object val = readObject(); if(val == null) { return null; } else if(val.getClass().isArray()) { return (Object[]) val; } else { Object[] array = (Object[]) Array.newInstance(val.getClass(), 1); array[0] = val; return array; } }
public Map readValue() { DecoderImpl decoder = getDecoder(); int size = decoder.readRawInt(); // todo - limit the decoder with size int count = decoder.readRawInt(); Map map = new HashMap(count); for(int i = 0; i < count; i++) { Object key = decoder.readObject(); i++; Object value = decoder.readObject(); map.put(key, value); } return map; }
public Map readValue() { DecoderImpl decoder = getDecoder(); int size = decoder.readRawInt(); // todo - limit the decoder with size int count = decoder.readRawInt(); Map map = new LinkedHashMap(count); for(int i = 0; i < count; i++) { Object key = decoder.readObject(); i++; Object value = decoder.readObject(); map.put(key, value); } return map; }
public Map readValue() { DecoderImpl decoder = getDecoder(); int size = ((int)decoder.readRawByte()) & 0xff; // todo - limit the decoder with size int count = ((int)decoder.readRawByte()) & 0xff; Map map = new HashMap(count); for(int i = 0; i < count; i++) { Object key = decoder.readObject(); i++; Object value = decoder.readObject(); map.put(key, value); } return map; }
public List readValue() { DecoderImpl decoder = getDecoder(); int size = ((int)decoder.readRawByte()) & 0xff; // todo - limit the decoder with size int count = ((int)decoder.readRawByte()) & 0xff; List list = new ArrayList(count); for(int i = 0; i < count; i++) { list.add(decoder.readObject()); } return list; }
public List readValue() { DecoderImpl decoder = getDecoder(); int size = decoder.readRawInt(); // todo - limit the decoder with size int count = decoder.readRawInt(); List list = new ArrayList(count); for(int i = 0; i < count; i++) { list.add(decoder.readObject()); } return list; }
public List readValue() { DecoderImpl decoder = getDecoder(); int size = ((int)decoder.readRawByte()) & 0xff; // todo - limit the decoder with size int count = ((int)decoder.readRawByte()) & 0xff; List list = new ArrayList(count); for(int i = 0; i < count; i++) { list.add(decoder.readObject()); } return list; }
public List readValue() { DecoderImpl decoder = getDecoder(); int size = decoder.readRawInt(); // todo - limit the decoder with size int count = decoder.readRawInt(); List list = new ArrayList(count); for(int i = 0; i < count; i++) { list.add(decoder.readObject()); } return list; }
@Override public AmqpValue readValue() { return new AmqpValue(getDecoder().readObject()); }
public List readValue() { DecoderImpl decoder = getDecoder(); int size = decoder.readRawInt(); // todo - limit the decoder with size int count = decoder.readRawInt(); List list = new ArrayList(count); for(int i = 0; i < count; i++) { list.add(decoder.readObject()); } return list; }
public List readValue() { DecoderImpl decoder = getDecoder(); int size = ((int)decoder.readRawByte()) & 0xff; // todo - limit the decoder with size int count = ((int)decoder.readRawByte()) & 0xff; List list = new ArrayList(count); for(int i = 0; i < count; i++) { list.add(decoder.readObject()); } return list; }
private DeliveryAnnotations getDeliveryAnnotations() { parseHeaders(); if (_deliveryAnnotations == null && deliveryAnnotationsPosition >= 0) { ReadableBuffer buffer = data.duplicate(); buffer.position(deliveryAnnotationsPosition); TLSEncode.getDecoder().setBuffer(buffer); Object section = TLSEncode.getDecoder().readObject(); _deliveryAnnotations = (DeliveryAnnotations) section; deliveryAnnotationsPosition = -1; TLSEncode.getDecoder().setBuffer(null); } return _deliveryAnnotations; }
private ApplicationProperties getApplicationProperties() { parseHeaders(); if (applicationProperties == null && appLocation >= 0) { ReadableBuffer buffer = data.duplicate(); buffer.position(appLocation); TLSEncode.getDecoder().setBuffer(buffer); Object section = TLSEncode.getDecoder().readObject(); applicationProperties = (ApplicationProperties) section; appLocation = -1; TLSEncode.getDecoder().setBuffer(null); } return applicationProperties; }