Modifier and Type | Method and Description |
---|---|
Channel |
OpenFile.inFlow(Context context)
Defines the set of actions which should be performed to created a byte channel.
|
Channel |
CreateMemoryChannel.inFlow(Context context)
Defines the set of actions which should be performed to created a byte channel.
|
Modifier and Type | Class and Description |
---|---|
class |
BlobIOChannel
Creates a blob channel to perform I/O operations.
|
class |
FileIOChannel
Represents the channel to perform I/O operations on file.
|
class |
SocketIOChannel
Represents the channel to perform I/O operations on
Socket . |
class |
TempFileIOChannel
A file channel for temp file resources.
|
Modifier and Type | Method and Description |
---|---|
abstract Channel |
AbstractNativeChannel.inFlow(Context context)
Defines the set of actions which should be performed to created a byte channel.
|
Modifier and Type | Method and Description |
---|---|
ByteBuffer |
Buffer.get(int numberOfBytesRequested,
Channel channel)
Get readable byte buffer.
|
Constructor and Description |
---|
CharacterChannel(Channel channel,
String encoding) |
DataChannel(Channel channel,
ByteOrder order) |
Constructor and Description |
---|
CloseByteChannelEvent(Channel channel,
EventContext context) |
ReadBytesEvent(Channel channel,
byte[] content,
EventContext context) |
WriteBytesEvent(Channel byteChannel,
byte[] content,
int startOffset,
EventContext context) |
Modifier and Type | Method and Description |
---|---|
static void |
IOUtils.close(Channel byteChannel,
EventContext eventContext,
Function<EventResult,EventResult> function)
Closes the channel asynchronously.
|
static void |
IOUtils.read(Channel channel,
byte[] content,
EventContext context,
Function<EventResult,EventResult> function)
Reads bytes asynchronously and trigger the callback.
|
static int |
IOUtils.readFull(Channel channel,
byte[] content,
EventContext context)
Asynchronously reads bytes from the channel.
|
static void |
IOUtils.write(Channel channel,
byte[] content,
int offset,
EventContext context,
Function<EventResult,EventResult> function)
Writes bytes to a channel asynchronously.
|
static int |
IOUtils.writeFull(Channel channel,
byte[] content,
int offset,
EventContext context)
Asynchronously writes bytes to a channel.
|
Modifier and Type | Class and Description |
---|---|
class |
Base64Wrapper
Wrap base64 byte channel stream as a ballerina specific byte channel.
|
Copyright © 2018 WSO2. All rights reserved.