Constructor and Description |
---|
BlockingReader() |
Modifier and Type | Method and Description |
---|---|
int |
read(ByteBuffer content,
ByteChannel channel)
Reads bytes in blocking mode.
|
public int read(ByteBuffer content, ByteChannel channel) throws IOException
read
in interface Reader
content
- the buffer which will hold the read content.channel
- the source channel where the content will be read from.IOException
- errors occur while reading.Copyright © 2018 WSO2. All rights reserved.