public class FileIOChannel extends Channel
Represents the channel to perform I/O operations on file.
Constructor and Description |
---|
FileIOChannel(FileChannel channel,
int size) |
Modifier and Type | Method and Description |
---|---|
void |
transfer(int position,
int count,
WritableByteChannel dstChannel)
Transfer file content to the specified destination.
|
read, readAll, write
close
public FileIOChannel(FileChannel channel, int size) throws BallerinaIOException
BallerinaIOException
public void transfer(int position, int count, WritableByteChannel dstChannel) throws BallerinaIOException
transfer
in class AbstractChannel
position
- starting position of the bytes to be transferred.count
- number of bytes to be transferred.dstChannel
- destination channel to transfer.BallerinaIOException
- during I/O error.Copyright © 2018 WSO2. All rights reserved.