public abstract class AbstractNativeChannel extends AbstractNativeFunction
For I/O APIs to work it requires each I/O source (file,tcp socket) to return a generic ByteChannel.
This will prepare the ByteChannel to perform I/O operations.
OpenChannel
VariableDef.Kind
identifier, isPublic, pkgPath, VOID_RETURN
Constructor and Description |
---|
AbstractNativeChannel() |
Modifier and Type | Method and Description |
---|---|
BValue[] |
execute(Context context) |
abstract AbstractChannel |
inFlow(Context context)
Defines the set of actions which should be performed to created a byte channel.
|
executeNative, getAnnotations, getArgumentTypes, getBlobArgument, getBooleanArgument, getBValues, getFloatArgument, getIntArgument, getKind, getName, getNodeLocation, getPackagePath, getParameterDefs, getRefArgument, getReturnParameters, getReturnParamTypes, getStackFrameSize, getStringArgument, getTempStackFrameSize, getType, getTypeName, getVariableDefs, getVarIndex, getWhiteSpaceDescriptor, isNative, isPublic, setKind, setName, setPackagePath, setParameterTypes, setReturnParamTypes, setStackFrameSize, setTempStackFrameSize, setType, setVarIndex
public abstract AbstractChannel inFlow(Context context) throws BallerinaException
Defines the set of actions which should be performed to created a byte channel.
context
- holds the context received from Ballerina.BallerinaException
public BValue[] execute(Context context)
execute
in class AbstractNativeFunction
Copyright © 2018 WSO2. All rights reserved.