DataChannel
SimpleDataChannel
public abstract class AbstractDataChannel extends Object implements DataChannel
Modifier and Type | Field | Description |
---|---|---|
protected static Map |
dataHandlers |
|
protected Session |
session |
Constructor | Description |
---|---|
AbstractDataChannel(Session session) |
Modifier and Type | Method | Description |
---|---|---|
DataChannelWriter |
getDataChannelSink(TransferContext context) |
|
DataChannelReader |
getDataChannelSource(TransferContext context) |
|
boolean |
isDataSinkModeSupported() |
Tests if the client supports specified transfer type and mode
(the client can write data in specific type and mode to the
data connection)
|
boolean |
isDataSourceModeSupported() |
Tests if the client supports specified transfer type and mode
(the client can read data in specific type and mode from the
data connection)
|
static void |
registerHandler(int transferMode,
int transferType,
int type,
Class clazz) |
close, startTransfer, startTransfer
public AbstractDataChannel(Session session)
public static void registerHandler(int transferMode, int transferType, int type, Class clazz) throws Exception
Exception
public boolean isDataSourceModeSupported()
public boolean isDataSinkModeSupported()
public DataChannelReader getDataChannelSource(TransferContext context) throws Exception
Exception
public DataChannelWriter getDataChannelSink(TransferContext context) throws Exception
Exception
Copyright © 2018. All rights reserved.