public interface WriteBuffer
Modifier and Type | Method and Description |
---|---|
byte[] |
getData()
Obtains the data to write.
|
ByteBuffer |
getDataBuffer()
Obtains the buffered data to write.
|
WriteBufferEnum |
getType()
Obtains the type of this
WriteBuffer . |
int |
length()
Obtains the number of bytes in the data to write.
|
WriteBufferEnum getType()
WriteBuffer
.WriteBuffer
.byte[] getData()
null
if containing data in
ByteBuffer
.int length()
-1
if
providing data through ByteBuffer
.ByteBuffer getDataBuffer()
Obtains the buffered data to write.
This allows the ConnectionHandler
to cache content in direct
ByteBuffer
instances to write to the client.
ByteBuffer
containing data to write.Copyright © 2005–2016. All rights reserved.