public class ReadResponse extends AbstractResponseMessage
| Modifier and Type | Field and Description |
|---|---|
static int |
READ_LIST_HEADER_SIZE |
_buffer, _request| Constructor and Description |
|---|
ReadResponse(XrootdRequest request,
int length) |
| Modifier and Type | Method and Description |
|---|---|
int |
getDataLength()
Returns the size of the payload.
|
void |
setIncomplete(boolean incomplete)
Set the status field to indicate whether the response is
complete or not.
|
String |
toString() |
int |
writeBytes(GenericReadRequestMessage.EmbeddedReadRequest req)
Reads bytes from a channel into the response buffer.
|
int |
writeBytes(ScatteringByteChannel in,
int length)
Reads bytes from a channel into the response buffer.
|
getBuffer, getRequest, put, putCharSequence, putSignedInt, putSignedLong, putUnsignedChar, putUnsignedShort, setStatuspublic static final int READ_LIST_HEADER_SIZE
public ReadResponse(XrootdRequest request, int length)
public void setIncomplete(boolean incomplete)
public int writeBytes(ScatteringByteChannel in, int length) throws IOException
IOExceptionpublic int writeBytes(GenericReadRequestMessage.EmbeddedReadRequest req)
public int getDataLength()
Copyright © 2012 dCache.org. All Rights Reserved.