public class LinuxSerialChannel extends SerialChannel
SerialChannel.Builder, SerialChannel.Configuration, SerialChannel.DataBits, SerialChannel.FlowControl, SerialChannel.Parity, SerialChannel.Speed, SerialChannel.StopBits| Modifier and Type | Field and Description |
|---|---|
static int |
MaxBuffers
The maximum number of buffers in Gathering or Scattering operations.
|
static int |
VERSION |
address, block, clearOnClose, configuration, log, MaxSelectors, port, readLock, writeLock| Modifier and Type | Method and Description |
|---|---|
protected void |
checkVersion() |
protected void |
doClearBuffers(long address) |
protected void |
doClose(long handle) |
protected void |
doConfigure(long handle,
int baudRate,
int parity,
int dataBits,
int stopBits,
int flowControl,
boolean replaceError) |
static void |
doEnumPorts(List<String> list) |
protected long |
doOpen(byte[] port) |
protected int |
doRead(long handle,
ByteBuffer dst) |
protected int |
doRead(long handle,
ByteBuffer[] dsts,
int offset,
int length) |
protected int |
doWrite(long handle,
ByteBuffer src) |
protected int |
doWrite(long handle,
ByteBuffer[] srcs,
int offset,
int length) |
static byte[] |
errorReplacement() |
long |
read(ByteBuffer[] dsts,
int offset,
int length) |
static void |
setDebug(boolean on) |
protected void |
setTimeouts() |
String |
toString() |
int |
validOps() |
protected int |
version() |
long |
write(ByteBuffer[] srcs,
int offset,
int length) |
clearBuffers, configure, debug, doClose, getAllPorts, getConfiguration, getDataBits, getDataBits, getErrorReplacement, getFlowControl, getFlowControl, getFreePorts, getInputStream, getOutputStream, getParity, getParity, getPort, getSpeed, getSpeed, getSpeed, getStopBits, getStopBits, implCloseSelectableChannel, implConfigureBlocking, isClearOnClose, isReplaceError, open, read, read, setClearOnClose, write, writeblockingLock, configureBlocking, implCloseChannel, isBlocking, isRegistered, keyFor, provider, registerregisterbegin, close, end, isOpenpublic static final int VERSION
public static final int MaxBuffers
protected void doClearBuffers(long address)
doClearBuffers in class SerialChannelprotected void doConfigure(long handle,
int baudRate,
int parity,
int dataBits,
int stopBits,
int flowControl,
boolean replaceError)
throws IOException
doConfigure in class SerialChannelIOExceptionprotected int version()
version in class SerialChannelprotected long doOpen(byte[] port)
doOpen in class SerialChannelpublic long read(ByteBuffer[] dsts, int offset, int length) throws IOException
read in interface ScatteringByteChannelread in class SerialChannelIOExceptionprotected int doRead(long handle,
ByteBuffer dst)
throws IOException
doRead in class SerialChannelIOExceptionprotected int doRead(long handle,
ByteBuffer[] dsts,
int offset,
int length)
throws IOException
IOExceptionpublic long write(ByteBuffer[] srcs, int offset, int length) throws IOException
write in interface GatheringByteChannelwrite in class SerialChannelIOExceptionprotected int doWrite(long handle,
ByteBuffer src)
throws IOException
doWrite in class SerialChannelIOExceptionprotected int doWrite(long handle,
ByteBuffer[] srcs,
int offset,
int length)
throws IOException
IOExceptionpublic static void setDebug(boolean on)
protected void doClose(long handle)
throws IOException
doClose in class SerialChannelIOExceptionpublic static byte[] errorReplacement()
protected void checkVersion()
protected void setTimeouts()
throws IOException
setTimeouts in class SerialChannelIOExceptionpublic int validOps()
validOps in class SelectableChannelCopyright © 2015. All rights reserved.