public class SocketChannelReader extends Object
| Constructor and Description |
|---|
SocketChannelReader(ORB orb) |
| Modifier and Type | Method and Description |
|---|---|
ByteBuffer |
read(SocketChannel channel,
ByteBuffer previouslyReadData,
int minNeeded)
Reads all currently available data from the socket channel, appending it to any data left
from a previous read.
|
public SocketChannelReader(ORB orb)
public ByteBuffer read(SocketChannel channel, ByteBuffer previouslyReadData, int minNeeded) throws IOException
channel - the channel from which to readpreviouslyReadData - the old data to read; note: all data up to the limit is considered valid.minNeeded - the minimum number of bytes that should be present in the buffer before returningIOException - if an error occurs while reading from the channel.Copyright © 2017–2019 Eclipse Foundation. All rights reserved.