258259260261262263264265266267
public HornetQBuffer getBodyBuffer() { if (bodyBuffer == null) { bodyBuffer = new ResetLimitWrappedHornetQBuffer(BODY_OFFSET, buffer, this); } return bodyBuffer; }
278279280281282283284
HornetQBuffer newBuffer = buffer.copy(0, buffer.capacity()); newBuffer.setIndex(0, getEndOfBodyPosition()); return new ResetLimitWrappedHornetQBuffer(BODY_OFFSET, newBuffer, null); }
170171172173174175176177178179180
{ bodySize = Integer.MAX_VALUE; } createBody((int)bodySize); bodyBuffer = new ResetLimitWrappedHornetQBuffer(BODY_OFFSET, buffer, this); try { largeMessageController.saveBuffer(new HornetQOutputStream(bodyBuffer)); }
249250251252253254255256257258259
{ if (bodyBuffer == null) { if (buffer instanceof LargeMessageBufferInternal == false) { bodyBuffer = new ResetLimitWrappedHornetQBuffer(BODY_OFFSET, buffer, this); } else { return buffer; }
272273274275276277278