public class FileIOChannel extends Channel
Represents the channel to perform I/O operations on file.
| Constructor and Description |
|---|
FileIOChannel(FileChannel channel) |
| Modifier and Type | Method and Description |
|---|---|
void |
transfer(int position,
int count,
WritableByteChannel dstChannel)
Transfer file content to the specified destination.
|
close, getInputStream, hasReachedEnd, read, readFull, writepublic FileIOChannel(FileChannel channel) throws BallerinaIOException
BallerinaIOExceptionpublic void transfer(int position,
int count,
WritableByteChannel dstChannel)
throws IOException
Will be used when performing direct transfer operations from OS cache.
transfer in class Channelposition - starting position of the bytes to be transferred.count - number of bytes to be transferred.dstChannel - destination channel to transfer.IOException - during I/O error.Copyright © 2018 WSO2. All rights reserved.