gnu.io
クラス RXTXPort

java.lang.Object
  上位を拡張 gnu.io.CommPort
      上位を拡張 gnu.io.SerialPort
          上位を拡張 gnu.io.RXTXPort

public final class RXTXPort
extends SerialPort

An extension of gnu.io.SerialPort

関連項目:
SerialPort

入れ子のクラスの概要
(package private)  class RXTXPort.MonitorThread
           
(package private)  class RXTXPort.SerialInputStream
          Inner class for SerialInputStream
(package private)  class RXTXPort.SerialOutputStream
          Inner class for SerialOutputStream
 
フィールドの概要
(package private)  boolean closeLock
           
private  int dataBits
          Data bits port parameter
protected static boolean debug
           
protected static boolean debug_events
           
protected static boolean debug_read
           
protected static boolean debug_read_results
           
protected static boolean debug_verbose
           
protected static boolean debug_write
           
(package private) static boolean dsrFlag
          DSR flag
(package private)  long eis
          a pointer to the event info structure used to share information between threads so write threads can send output buffer empty from a pthread if need be.
private  int fd
          File descriptor
private  int flowmode
          Flow control
private  RXTXPort.SerialInputStream in
          Input stream
private  int InputBuffer
          FIXME I think this refers to FOPEN(3)/SETBUF(3)/FREAD(3)/FCLOSE(3) taj@www.linux.org.uk These are native stubs...
(package private)  int IOLocked
           
(package private)  boolean MonitorThreadAlive
           
(package private)  boolean MonitorThreadLock
          Add an event listener
private  RXTXPort.MonitorThread monThread
          Thread to monitor data
(package private)  boolean monThreadisInterrupted
           
private  RXTXPort.SerialOutputStream out
          Output stream
private  int OutputBuffer
           
private  int parity
          Parity port parameter
(package private)  int pid
          pid for lock files
private  int speed
          Line speed in bits-per-second
private  SerialPortEventListener SPEventListener
          Serial Port Event listener
private  int stopBits
          Stop bits port parameter
private  int threshold
          Receive threshold control
private  int timeout
          Receive timeout control
private static Zystem z
           
 
クラス gnu.io.SerialPort から継承されたフィールド
DATABITS_5, DATABITS_6, DATABITS_7, DATABITS_8, FLOWCONTROL_NONE, FLOWCONTROL_RTSCTS_IN, FLOWCONTROL_RTSCTS_OUT, FLOWCONTROL_XONXOFF_IN, FLOWCONTROL_XONXOFF_OUT, PARITY_EVEN, PARITY_MARK, PARITY_NONE, PARITY_ODD, PARITY_SPACE, STOPBITS_1, STOPBITS_1_5, STOPBITS_2
 
クラス gnu.io.CommPort から継承されたフィールド
name
 
コンストラクタの概要
RXTXPort(java.lang.String name)
          Open the named port
 
メソッドの概要
 void addEventListener(SerialPortEventListener lsnr)
           
 boolean checkMonitorThread()
           
 boolean clearCommInput()
          Extension to CommAPI returns boolean true on success
 void close()
           
 void disableReceiveFraming()
           
 void disableReceiveThreshold()
           
 void disableReceiveTimeout()
           
 void enableReceiveFraming(int f)
          Receive framing control
 void enableReceiveThreshold(int thresh)
           
 void enableReceiveTimeout(int time)
           
(package private)  void eventLoop()
          Process SerialPortEvents
protected  void finalize()
          Finalize the port
 int getBaudBase()
          Extension to CommAPI
 int getBaudRate()
           
 boolean getCallOutHangup()
          Extension to CommAPI returns boolean true on success
 int getDataBits()
           
 int getDivisor()
          Extension to CommAPI
 byte getEndOfInputChar()
          Extension to CommAPI This is an extension to CommAPI.
 int getFlowControlMode()
           
 int getInputBufferSize()
           
 java.io.InputStream getInputStream()
          get the InputStream
 boolean getLowLatency()
          Extension to CommAPI returns boolean true on success
 int getOutputBufferSize()
           
 java.io.OutputStream getOutputStream()
          get the OutputStream
 int getParity()
           
 byte getParityErrorChar()
          Extension to CommAPI This is an extension to CommAPI.
 int getReceiveFramingByte()
           
 int getReceiveThreshold()
           
 int getReceiveTimeout()
           
 int getStopBits()
           
 java.lang.String getUARTType()
          Extension to CommAPI This is an extension to CommAPI.
private static void Initialize()
          Initialize the native library
private  void interruptEventLoop()
           
 boolean isCD()
           
 boolean isCTS()
           
 boolean isDSR()
           
 boolean isDTR()
           
 boolean isReceiveFramingEnabled()
           
 boolean isReceiveThresholdEnabled()
           
 boolean isReceiveTimeoutEnabled()
           
 boolean isRI()
           
 boolean isRTS()
           
protected  int nativeavailable()
          RXTXPort read methods
private  boolean nativeClearCommInput()
           
private  void nativeClose(java.lang.String name)
          Close the port
protected  boolean nativeDrain(boolean i)
           
private  void NativeEnableReceiveTimeoutThreshold(int time, int threshold, int InputBuffer)
           
private  int nativeGetBaudBase()
           
private  boolean nativeGetCallOutHangup()
           
private  int nativeGetDivisor()
           
private  byte nativeGetEndOfInputChar()
           
private  int nativeGetFlowControlMode(int fd)
           
private  boolean nativeGetLowLatency()
           
private  int nativeGetParity(int fd)
          Set the SerialPort parameters 1.5 stop bits requires 5 databits
private  byte nativeGetParityErrorChar()
           
 int NativegetReceiveTimeout()
           
(package private)  java.lang.String nativeGetUartType()
           
private  boolean NativeisReceiveTimeoutEnabled()
           
private  boolean nativeSetBaudBase(int BaudBase)
           
private  boolean nativeSetCallOutHangup(boolean NoHup)
           
private  boolean nativeSetDivisor(int Divisor)
           
private  boolean nativeSetEndOfInputChar(byte b)
           
private  void nativeSetEventFlag(int fd, int event, boolean flag)
           
private  boolean nativeSetLowLatency()
           
private  boolean nativeSetParityErrorChar(byte b)
           
private  boolean nativeSetSerialPortParams(int speed, int dataBits, int stopBits, int parity)
          Set the native serial port parameters If speed is not a predifined speed it is assumed to be the actual speed desired.
private  boolean nativeSetUartType(java.lang.String type, boolean test)
           
private static int nativeStaticGetBaudRate(java.lang.String port)
           
private static int nativeStaticGetDataBits(java.lang.String port)
           
private static int nativeStaticGetParity(java.lang.String port)
           
private static int nativeStaticGetStopBits(java.lang.String port)
           
private static boolean nativeStaticIsCD(java.lang.String port)
           
private static boolean nativeStaticIsCTS(java.lang.String port)
           
private static boolean nativeStaticIsDSR(java.lang.String port)
           
private static boolean nativeStaticIsDTR(java.lang.String port)
           
private static boolean nativeStaticIsRI(java.lang.String port)
           
private static boolean nativeStaticIsRTS(java.lang.String port)
           
private static boolean nativeStaticSetDSR(java.lang.String port, boolean flag)
           
private static boolean nativeStaticSetDTR(java.lang.String port, boolean flag)
           
private static boolean nativeStaticSetRTS(java.lang.String port, boolean flag)
           
private static void nativeStaticSetSerialPortParams(java.lang.String f, int b, int d, int s, int p)
           
 void notifyOnBreakInterrupt(boolean enable)
           
 void notifyOnCarrierDetect(boolean enable)
           
 void notifyOnCTS(boolean enable)
           
 void notifyOnDataAvailable(boolean enable)
           
 void notifyOnDSR(boolean enable)
           
 void notifyOnFramingError(boolean enable)
           
 void notifyOnOutputEmpty(boolean enable)
           
 void notifyOnOverrunError(boolean enable)
           
 void notifyOnParityError(boolean enable)
           
 void notifyOnRingIndicator(boolean enable)
           
private  int open(java.lang.String name)
           
protected  int readArray(byte[] b, int off, int len)
           
protected  int readByte()
           
protected  int readTerminatedArray(byte[] b, int off, int len, byte[] t)
           
 void removeEventListener()
          Remove the serial port event listener
 void sendBreak(int duration)
          Write to the port
 boolean sendEvent(int event, boolean state)
           
 boolean setBaudBase(int BaudBase)
          Extension to CommAPI.
 boolean setCallOutHangup(boolean NoHup)
          Extension to CommAPI returns boolean true on success
 boolean setDivisor(int Divisor)
          Extension to CommAPI.
private  void setDSR(boolean state)
           
 void setDTR(boolean state)
           
 boolean setEndOfInputChar(byte b)
          Extension to CommAPI This is an extension to CommAPI.
(package private)  void setflowcontrol(int flowcontrol)
           
 void setFlowControlMode(int flowcontrol)
           
 void setInputBufferSize(int size)
           
 boolean setLowLatency()
          Extension to CommAPI returns boolean true on success
 void setOutputBufferSize(int size)
           
 boolean setParityErrorChar(byte b)
          Extension to CommAPI This is an extension to CommAPI.
 void setRcvFifoTrigger(int trigger)
          推奨されていません。 deprecated but used in Kaffe
 void setRTS(boolean state)
           
 void setSerialPortParams(int b, int d, int s, int p)
           
 boolean setUARTType(java.lang.String type, boolean test)
          Extension to CommAPI This is an extension to CommAPI.
static int staticGetBaudRate(java.lang.String port)
          Extension to CommAPI This is an extension to CommAPI.
static int staticGetDataBits(java.lang.String port)
          Extension to CommAPI This is an extension to CommAPI.
static int staticGetParity(java.lang.String port)
          Extension to CommAPI This is an extension to CommAPI.
static int staticGetStopBits(java.lang.String port)
          Extension to CommAPI This is an extension to CommAPI.
static boolean staticIsCD(java.lang.String port)
          Extension to CommAPI This is an extension to CommAPI.
static boolean staticIsCTS(java.lang.String port)
          Extension to CommAPI This is an extension to CommAPI.
static boolean staticIsDSR(java.lang.String port)
          Extension to CommAPI This is an extension to CommAPI.
static boolean staticIsDTR(java.lang.String port)
          Extension to CommAPI This is an extension to CommAPI.
static boolean staticIsRI(java.lang.String port)
          Extension to CommAPI This is an extension to CommAPI.
static boolean staticIsRTS(java.lang.String port)
          Extension to CommAPI This is an extension to CommAPI.
static boolean staticSetDSR(java.lang.String port, boolean flag)
          Extension to CommAPI This is an extension to CommAPI.
static boolean staticSetDTR(java.lang.String port, boolean flag)
          Extension to CommAPI This is an extension to CommAPI.
static boolean staticSetRTS(java.lang.String port, boolean flag)
          Extension to CommAPI This is an extension to CommAPI.
static void staticSetSerialPortParams(java.lang.String f, int b, int d, int s, int p)
          Extension to CommAPI This is an extension to CommAPI.
protected  void waitForTheNativeCodeSilly()
          Give the native code a chance to start listening to the hardware or should we say give the native code control of the issue.
protected  void writeArray(byte[] b, int off, int len, boolean i)
           
protected  void writeByte(int b, boolean i)
           
 
クラス gnu.io.CommPort から継承されたメソッド
getName, toString
 
クラス java.lang.Object から継承されたメソッド
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

フィールドの詳細

debug

protected static final boolean debug
関連項目:
定数フィールド値

debug_read

protected static final boolean debug_read
関連項目:
定数フィールド値

debug_read_results

protected static final boolean debug_read_results
関連項目:
定数フィールド値

debug_write

protected static final boolean debug_write
関連項目:
定数フィールド値

debug_events

protected static final boolean debug_events
関連項目:
定数フィールド値

debug_verbose

protected static final boolean debug_verbose
関連項目:
定数フィールド値

z

private static Zystem z

MonitorThreadAlive

boolean MonitorThreadAlive

IOLocked

int IOLocked

fd

private int fd
File descriptor


eis

long eis
a pointer to the event info structure used to share information between threads so write threads can send output buffer empty from a pthread if need be. long for 64 bit pointers.


pid

int pid
pid for lock files


dsrFlag

static boolean dsrFlag
DSR flag


out

private final RXTXPort.SerialOutputStream out
Output stream


in

private final RXTXPort.SerialInputStream in
Input stream


speed

private int speed
Line speed in bits-per-second


dataBits

private int dataBits
Data bits port parameter


stopBits

private int stopBits
Stop bits port parameter


parity

private int parity
Parity port parameter


flowmode

private int flowmode
Flow control


timeout

private int timeout
Receive timeout control


threshold

private int threshold
Receive threshold control


InputBuffer

private int InputBuffer
FIXME I think this refers to FOPEN(3)/SETBUF(3)/FREAD(3)/FCLOSE(3) taj@www.linux.org.uk These are native stubs...


OutputBuffer

private int OutputBuffer

SPEventListener

private SerialPortEventListener SPEventListener
Serial Port Event listener


monThread

private RXTXPort.MonitorThread monThread
Thread to monitor data


monThreadisInterrupted

boolean monThreadisInterrupted

MonitorThreadLock

boolean MonitorThreadLock
Add an event listener


closeLock

boolean closeLock
コンストラクタの詳細

RXTXPort

public RXTXPort(java.lang.String name)
         throws PortInUseException
Open the named port

パラメータ:
name - the name of the device to open
例外:
PortInUseException
関連項目:
SerialPort
メソッドの詳細

Initialize

private static void Initialize()
Initialize the native library


open

private int open(java.lang.String name)
          throws PortInUseException
例外:
PortInUseException

getOutputStream

public java.io.OutputStream getOutputStream()
get the OutputStream

定義:
クラス CommPort 内の getOutputStream
戻り値:
OutputStream

getInputStream

public java.io.InputStream getInputStream()
get the InputStream

定義:
クラス CommPort 内の getInputStream
戻り値:
InputStream
関連項目:
InputStream

nativeGetParity

private int nativeGetParity(int fd)
Set the SerialPort parameters 1.5 stop bits requires 5 databits

パラメータ:
b - baudrate
d - databits
s - stopbits
p - parity
例外:
UnsupportedCommOperationException
関連項目:
If speed is not a predifined speed it is assumed to be the actual speed desired.

nativeGetFlowControlMode

private int nativeGetFlowControlMode(int fd)

setSerialPortParams

public void setSerialPortParams(int b,
                                int d,
                                int s,
                                int p)
                         throws UnsupportedCommOperationException
定義:
クラス SerialPort 内の setSerialPortParams
例外:
UnsupportedCommOperationException

nativeSetSerialPortParams

private boolean nativeSetSerialPortParams(int speed,
                                          int dataBits,
                                          int stopBits,
                                          int parity)
                                   throws UnsupportedCommOperationException
Set the native serial port parameters If speed is not a predifined speed it is assumed to be the actual speed desired.

例外:
UnsupportedCommOperationException

getBaudRate

public int getBaudRate()
定義:
クラス SerialPort 内の getBaudRate
戻り値:
int representing the baudrate This will not behave as expected with custom speeds

getDataBits

public int getDataBits()
定義:
クラス SerialPort 内の getDataBits
戻り値:
int representing the databits

getStopBits

public int getStopBits()
定義:
クラス SerialPort 内の getStopBits
戻り値:
int representing the stopbits

getParity

public int getParity()
定義:
クラス SerialPort 内の getParity
戻り値:
int representing the parity

setFlowControlMode

public void setFlowControlMode(int flowcontrol)
定義:
クラス SerialPort 内の setFlowControlMode
パラメータ:
flowcontrol - FLOWCONTROL_NONE is default
関連項目:
SerialPort.FLOWCONTROL_NONE

getFlowControlMode

public int getFlowControlMode()
定義:
クラス SerialPort 内の getFlowControlMode
戻り値:
int representing the flowmode

setflowcontrol

void setflowcontrol(int flowcontrol)
              throws java.io.IOException
例外:
java.io.IOException

enableReceiveFraming

public void enableReceiveFraming(int f)
                          throws UnsupportedCommOperationException
Receive framing control

定義:
クラス CommPort 内の enableReceiveFraming
パラメータ:
f - framming
例外:
UnsupportedCommOperationException

disableReceiveFraming

public void disableReceiveFraming()
定義:
クラス CommPort 内の disableReceiveFraming

isReceiveFramingEnabled

public boolean isReceiveFramingEnabled()
定義:
クラス CommPort 内の isReceiveFramingEnabled

getReceiveFramingByte

public int getReceiveFramingByte()
定義:
クラス CommPort 内の getReceiveFramingByte
戻り値:
int representing the framing byte

NativegetReceiveTimeout

public int NativegetReceiveTimeout()
戻り値:
int the timeout

NativeisReceiveTimeoutEnabled

private boolean NativeisReceiveTimeoutEnabled()
戻り値:
bloolean true if recieve timeout is enabled

NativeEnableReceiveTimeoutThreshold

private void NativeEnableReceiveTimeoutThreshold(int time,
                                                 int threshold,
                                                 int InputBuffer)
パラメータ:
time -
threshold -
InputBuffer -

disableReceiveTimeout

public void disableReceiveTimeout()
定義:
クラス CommPort 内の disableReceiveTimeout

enableReceiveTimeout

public void enableReceiveTimeout(int time)
定義:
クラス CommPort 内の enableReceiveTimeout
パラメータ:
time -

isReceiveTimeoutEnabled

public boolean isReceiveTimeoutEnabled()
定義:
クラス CommPort 内の isReceiveTimeoutEnabled
戻り値:
boolean true if recieve timeout is enabled

getReceiveTimeout

public int getReceiveTimeout()
定義:
クラス CommPort 内の getReceiveTimeout
戻り値:
int the timeout

enableReceiveThreshold

public void enableReceiveThreshold(int thresh)
定義:
クラス CommPort 内の enableReceiveThreshold
パラメータ:
thresh - threshold

disableReceiveThreshold

public void disableReceiveThreshold()
定義:
クラス CommPort 内の disableReceiveThreshold

getReceiveThreshold

public int getReceiveThreshold()
定義:
クラス CommPort 内の getReceiveThreshold
戻り値:
int the recieve threshold

isReceiveThresholdEnabled

public boolean isReceiveThresholdEnabled()
定義:
クラス CommPort 内の isReceiveThresholdEnabled
戻り値:
boolean true if receive threshold is enabled

setInputBufferSize

public void setInputBufferSize(int size)
定義:
クラス CommPort 内の setInputBufferSize
パラメータ:
size -

getInputBufferSize

public int getInputBufferSize()
定義:
クラス CommPort 内の getInputBufferSize

setOutputBufferSize

public void setOutputBufferSize(int size)
定義:
クラス CommPort 内の setOutputBufferSize
パラメータ:
size -

getOutputBufferSize

public int getOutputBufferSize()
定義:
クラス CommPort 内の getOutputBufferSize
戻り値:
in the output buffer size

isDTR

public boolean isDTR()
定義:
クラス SerialPort 内の isDTR

setDTR

public void setDTR(boolean state)
定義:
クラス SerialPort 内の setDTR
パラメータ:
state -

setRTS

public void setRTS(boolean state)
定義:
クラス SerialPort 内の setRTS
パラメータ:
state -

setDSR

private void setDSR(boolean state)

isCTS

public boolean isCTS()
定義:
クラス SerialPort 内の isCTS
戻り値:
boolean true if CTS is set

isDSR

public boolean isDSR()
定義:
クラス SerialPort 内の isDSR
戻り値:
boolean true if DSR is set

isCD

public boolean isCD()
定義:
クラス SerialPort 内の isCD
戻り値:
boolean true if CD is set

isRI

public boolean isRI()
定義:
クラス SerialPort 内の isRI
戻り値:
boolean true if RI is set

isRTS

public boolean isRTS()
定義:
クラス SerialPort 内の isRTS
戻り値:
boolean true if RTS is set

sendBreak

public void sendBreak(int duration)
Write to the port

定義:
クラス SerialPort 内の sendBreak
パラメータ:
duration -

writeByte

protected void writeByte(int b,
                         boolean i)
                  throws java.io.IOException
例外:
java.io.IOException

writeArray

protected void writeArray(byte[] b,
                          int off,
                          int len,
                          boolean i)
                   throws java.io.IOException
例外:
java.io.IOException

nativeDrain

protected boolean nativeDrain(boolean i)
                       throws java.io.IOException
例外:
java.io.IOException

nativeavailable

protected int nativeavailable()
                       throws java.io.IOException
RXTXPort read methods

例外:
java.io.IOException

readByte

protected int readByte()
                throws java.io.IOException
例外:
java.io.IOException

readArray

protected int readArray(byte[] b,
                        int off,
                        int len)
                 throws java.io.IOException
例外:
java.io.IOException

readTerminatedArray

protected int readTerminatedArray(byte[] b,
                                  int off,
                                  int len,
                                  byte[] t)
                           throws java.io.IOException
例外:
java.io.IOException

eventLoop

void eventLoop()
Process SerialPortEvents


interruptEventLoop

private void interruptEventLoop()

checkMonitorThread

public boolean checkMonitorThread()

sendEvent

public boolean sendEvent(int event,
                         boolean state)
パラメータ:
event -
state -
戻り値:
boolean true if the port is closing

addEventListener

public void addEventListener(SerialPortEventListener lsnr)
                      throws java.util.TooManyListenersException
定義:
クラス SerialPort 内の addEventListener
例外:
java.util.TooManyListenersException

removeEventListener

public void removeEventListener()
Remove the serial port event listener

定義:
クラス SerialPort 内の removeEventListener

waitForTheNativeCodeSilly

protected void waitForTheNativeCodeSilly()
Give the native code a chance to start listening to the hardware or should we say give the native code control of the issue. This is important for applications that flicker the Monitor thread while keeping the port open. In worst case test cases this loops once or twice every time.


nativeSetEventFlag

private void nativeSetEventFlag(int fd,
                                int event,
                                boolean flag)
パラメータ:
enable -

notifyOnDataAvailable

public void notifyOnDataAvailable(boolean enable)
定義:
クラス SerialPort 内の notifyOnDataAvailable

notifyOnOutputEmpty

public void notifyOnOutputEmpty(boolean enable)
定義:
クラス SerialPort 内の notifyOnOutputEmpty
パラメータ:
enable -

notifyOnCTS

public void notifyOnCTS(boolean enable)
定義:
クラス SerialPort 内の notifyOnCTS
パラメータ:
enable -

notifyOnDSR

public void notifyOnDSR(boolean enable)
定義:
クラス SerialPort 内の notifyOnDSR
パラメータ:
enable -

notifyOnRingIndicator

public void notifyOnRingIndicator(boolean enable)
定義:
クラス SerialPort 内の notifyOnRingIndicator
パラメータ:
enable -

notifyOnCarrierDetect

public void notifyOnCarrierDetect(boolean enable)
定義:
クラス SerialPort 内の notifyOnCarrierDetect
パラメータ:
enable -

notifyOnOverrunError

public void notifyOnOverrunError(boolean enable)
定義:
クラス SerialPort 内の notifyOnOverrunError
パラメータ:
enable -

notifyOnParityError

public void notifyOnParityError(boolean enable)
定義:
クラス SerialPort 内の notifyOnParityError
パラメータ:
enable -

notifyOnFramingError

public void notifyOnFramingError(boolean enable)
定義:
クラス SerialPort 内の notifyOnFramingError
パラメータ:
enable -

notifyOnBreakInterrupt

public void notifyOnBreakInterrupt(boolean enable)
定義:
クラス SerialPort 内の notifyOnBreakInterrupt
パラメータ:
enable -

nativeClose

private void nativeClose(java.lang.String name)
Close the port


close

public void close()
オーバーライド:
クラス CommPort 内の close

finalize

protected void finalize()
Finalize the port

オーバーライド:
クラス java.lang.Object 内の finalize

setRcvFifoTrigger

public void setRcvFifoTrigger(int trigger)
推奨されていません。 deprecated but used in Kaffe

A dummy method added so RXTX compiles on Kaffee


nativeStaticSetSerialPortParams

private static void nativeStaticSetSerialPortParams(java.lang.String f,
                                                    int b,
                                                    int d,
                                                    int s,
                                                    int p)
                                             throws UnsupportedCommOperationException
例外:
UnsupportedCommOperationException

nativeStaticSetDSR

private static boolean nativeStaticSetDSR(java.lang.String port,
                                          boolean flag)
                                   throws UnsupportedCommOperationException
例外:
UnsupportedCommOperationException

nativeStaticSetDTR

private static boolean nativeStaticSetDTR(java.lang.String port,
                                          boolean flag)
                                   throws UnsupportedCommOperationException
例外:
UnsupportedCommOperationException

nativeStaticSetRTS

private static boolean nativeStaticSetRTS(java.lang.String port,
                                          boolean flag)
                                   throws UnsupportedCommOperationException
例外:
UnsupportedCommOperationException

nativeStaticIsDSR

private static boolean nativeStaticIsDSR(java.lang.String port)
                                  throws UnsupportedCommOperationException
例外:
UnsupportedCommOperationException

nativeStaticIsDTR

private static boolean nativeStaticIsDTR(java.lang.String port)
                                  throws UnsupportedCommOperationException
例外:
UnsupportedCommOperationException

nativeStaticIsRTS

private static boolean nativeStaticIsRTS(java.lang.String port)
                                  throws UnsupportedCommOperationException
例外:
UnsupportedCommOperationException

nativeStaticIsCTS

private static boolean nativeStaticIsCTS(java.lang.String port)
                                  throws UnsupportedCommOperationException
例外:
UnsupportedCommOperationException

nativeStaticIsCD

private static boolean nativeStaticIsCD(java.lang.String port)
                                 throws UnsupportedCommOperationException
例外:
UnsupportedCommOperationException

nativeStaticIsRI

private static boolean nativeStaticIsRI(java.lang.String port)
                                 throws UnsupportedCommOperationException
例外:
UnsupportedCommOperationException

nativeStaticGetBaudRate

private static int nativeStaticGetBaudRate(java.lang.String port)
                                    throws UnsupportedCommOperationException
例外:
UnsupportedCommOperationException

nativeStaticGetDataBits

private static int nativeStaticGetDataBits(java.lang.String port)
                                    throws UnsupportedCommOperationException
例外:
UnsupportedCommOperationException

nativeStaticGetParity

private static int nativeStaticGetParity(java.lang.String port)
                                  throws UnsupportedCommOperationException
例外:
UnsupportedCommOperationException

nativeStaticGetStopBits

private static int nativeStaticGetStopBits(java.lang.String port)
                                    throws UnsupportedCommOperationException
例外:
UnsupportedCommOperationException

nativeGetParityErrorChar

private byte nativeGetParityErrorChar()
                               throws UnsupportedCommOperationException
例外:
UnsupportedCommOperationException

nativeSetParityErrorChar

private boolean nativeSetParityErrorChar(byte b)
                                  throws UnsupportedCommOperationException
例外:
UnsupportedCommOperationException

nativeGetEndOfInputChar

private byte nativeGetEndOfInputChar()
                              throws UnsupportedCommOperationException
例外:
UnsupportedCommOperationException

nativeSetEndOfInputChar

private boolean nativeSetEndOfInputChar(byte b)
                                 throws UnsupportedCommOperationException
例外:
UnsupportedCommOperationException

nativeSetUartType

private boolean nativeSetUartType(java.lang.String type,
                                  boolean test)
                           throws UnsupportedCommOperationException
例外:
UnsupportedCommOperationException

nativeGetUartType

java.lang.String nativeGetUartType()
                             throws UnsupportedCommOperationException
例外:
UnsupportedCommOperationException

nativeSetBaudBase

private boolean nativeSetBaudBase(int BaudBase)
                           throws UnsupportedCommOperationException
例外:
UnsupportedCommOperationException

nativeGetBaudBase

private int nativeGetBaudBase()
                       throws UnsupportedCommOperationException
例外:
UnsupportedCommOperationException

nativeSetDivisor

private boolean nativeSetDivisor(int Divisor)
                          throws UnsupportedCommOperationException
例外:
UnsupportedCommOperationException

nativeGetDivisor

private int nativeGetDivisor()
                      throws UnsupportedCommOperationException
例外:
UnsupportedCommOperationException

nativeSetLowLatency

private boolean nativeSetLowLatency()
                             throws UnsupportedCommOperationException
例外:
UnsupportedCommOperationException

nativeGetLowLatency

private boolean nativeGetLowLatency()
                             throws UnsupportedCommOperationException
例外:
UnsupportedCommOperationException

nativeSetCallOutHangup

private boolean nativeSetCallOutHangup(boolean NoHup)
                                throws UnsupportedCommOperationException
例外:
UnsupportedCommOperationException

nativeGetCallOutHangup

private boolean nativeGetCallOutHangup()
                                throws UnsupportedCommOperationException
例外:
UnsupportedCommOperationException

nativeClearCommInput

private boolean nativeClearCommInput()
                              throws UnsupportedCommOperationException
例外:
UnsupportedCommOperationException

staticGetBaudRate

public static int staticGetBaudRate(java.lang.String port)
                             throws UnsupportedCommOperationException
Extension to CommAPI This is an extension to CommAPI. It may not be supported on all operating systems. This is only accurate up to 38600 baud currently.

パラメータ:
port - the name of the port thats been preopened
戻り値:
BaudRate on success
例外:
UnsupportedCommOperationException; - This will not behave as expected with custom speeds
UnsupportedCommOperationException

staticGetDataBits

public static int staticGetDataBits(java.lang.String port)
                             throws UnsupportedCommOperationException
Extension to CommAPI This is an extension to CommAPI. It may not be supported on all operating systems.

パラメータ:
port - the name of the port thats been preopened
戻り値:
DataBits on success
例外:
UnsupportedCommOperationException;
UnsupportedCommOperationException

staticGetParity

public static int staticGetParity(java.lang.String port)
                           throws UnsupportedCommOperationException
Extension to CommAPI This is an extension to CommAPI. It may not be supported on all operating systems.

パラメータ:
port - the name of the port thats been preopened
戻り値:
Parity on success
例外:
UnsupportedCommOperationException;
UnsupportedCommOperationException

staticGetStopBits

public static int staticGetStopBits(java.lang.String port)
                             throws UnsupportedCommOperationException
Extension to CommAPI This is an extension to CommAPI. It may not be supported on all operating systems.

パラメータ:
port - the name of the port thats been preopened
戻り値:
StopBits on success
例外:
UnsupportedCommOperationException;
UnsupportedCommOperationException

staticSetSerialPortParams

public static void staticSetSerialPortParams(java.lang.String f,
                                             int b,
                                             int d,
                                             int s,
                                             int p)
                                      throws UnsupportedCommOperationException
Extension to CommAPI This is an extension to CommAPI. It may not be supported on all operating systems. Set the SerialPort parameters 1.5 stop bits requires 5 databits

パラメータ:
f - filename
b - baudrate
d - databits
s - stopbits
p - parity
例外:
UnsupportedCommOperationException
関連項目:
UnsupportedCommOperationException

staticSetDSR

public static boolean staticSetDSR(java.lang.String port,
                                   boolean flag)
                            throws UnsupportedCommOperationException
Extension to CommAPI This is an extension to CommAPI. It may not be supported on all operating systems. Open the port and set DSR. remove lockfile and do not close This is so some software can appear to set the DSR before 'opening' the port a second time later on.

戻り値:
true on success
例外:
UnsupportedCommOperationException;
UnsupportedCommOperationException

staticSetDTR

public static boolean staticSetDTR(java.lang.String port,
                                   boolean flag)
                            throws UnsupportedCommOperationException
Extension to CommAPI This is an extension to CommAPI. It may not be supported on all operating systems. Open the port and set DTR. remove lockfile and do not close This is so some software can appear to set the DTR before 'opening' the port a second time later on.

戻り値:
true on success
例外:
UnsupportedCommOperationException;
UnsupportedCommOperationException

staticSetRTS

public static boolean staticSetRTS(java.lang.String port,
                                   boolean flag)
                            throws UnsupportedCommOperationException
Extension to CommAPI This is an extension to CommAPI. It may not be supported on all operating systems. Open the port and set RTS. remove lockfile and do not close This is so some software can appear to set the RTS before 'opening' the port a second time later on.

戻り値:
none
例外:
UnsupportedCommOperationException;
UnsupportedCommOperationException

staticIsRTS

public static boolean staticIsRTS(java.lang.String port)
                           throws UnsupportedCommOperationException
Extension to CommAPI This is an extension to CommAPI. It may not be supported on all operating systems. find the fd and return RTS without using a Java open() call

パラメータ:
String - port
戻り値:
boolean true if asserted
例外:
UnsupportedCommOperationException;
UnsupportedCommOperationException

staticIsCD

public static boolean staticIsCD(java.lang.String port)
                          throws UnsupportedCommOperationException
Extension to CommAPI This is an extension to CommAPI. It may not be supported on all operating systems. find the fd and return CD without using a Java open() call

パラメータ:
String - port
戻り値:
boolean true if asserted
例外:
UnsupportedCommOperationException;
UnsupportedCommOperationException

staticIsCTS

public static boolean staticIsCTS(java.lang.String port)
                           throws UnsupportedCommOperationException
Extension to CommAPI This is an extension to CommAPI. It may not be supported on all operating systems. find the fd and return CTS without using a Java open() call

パラメータ:
String - port
戻り値:
boolean true if asserted
例外:
UnsupportedCommOperationException;
UnsupportedCommOperationException

staticIsDSR

public static boolean staticIsDSR(java.lang.String port)
                           throws UnsupportedCommOperationException
Extension to CommAPI This is an extension to CommAPI. It may not be supported on all operating systems. find the fd and return DSR without using a Java open() call

パラメータ:
String - port
戻り値:
boolean true if asserted
例外:
UnsupportedCommOperationException;
UnsupportedCommOperationException

staticIsDTR

public static boolean staticIsDTR(java.lang.String port)
                           throws UnsupportedCommOperationException
Extension to CommAPI This is an extension to CommAPI. It may not be supported on all operating systems. find the fd and return DTR without using a Java open() call

パラメータ:
String - port
戻り値:
boolean true if asserted
例外:
UnsupportedCommOperationException;
UnsupportedCommOperationException

staticIsRI

public static boolean staticIsRI(java.lang.String port)
                          throws UnsupportedCommOperationException
Extension to CommAPI This is an extension to CommAPI. It may not be supported on all operating systems. find the fd and return RI without using a Java open() call

パラメータ:
String - port
戻り値:
boolean true if asserted
例外:
UnsupportedCommOperationException;
UnsupportedCommOperationException

getParityErrorChar

public byte getParityErrorChar()
                        throws UnsupportedCommOperationException
Extension to CommAPI This is an extension to CommAPI. It may not be supported on all operating systems.

定義:
クラス SerialPort 内の getParityErrorChar
戻り値:
int the Parity Error Character
例外:
UnsupportedCommOperationException; - Anyone know how to do this in Unix?
UnsupportedCommOperationException

setParityErrorChar

public boolean setParityErrorChar(byte b)
                           throws UnsupportedCommOperationException
Extension to CommAPI This is an extension to CommAPI. It may not be supported on all operating systems.

定義:
クラス SerialPort 内の setParityErrorChar
パラメータ:
b - Parity Error Character
戻り値:
boolean true on success
例外:
UnsupportedCommOperationException; - Anyone know how to do this in Unix?
UnsupportedCommOperationException

getEndOfInputChar

public byte getEndOfInputChar()
                       throws UnsupportedCommOperationException
Extension to CommAPI This is an extension to CommAPI. It may not be supported on all operating systems.

定義:
クラス SerialPort 内の getEndOfInputChar
戻り値:
int the End of Input Character
例外:
UnsupportedCommOperationException; - Anyone know how to do this in Unix?
UnsupportedCommOperationException

setEndOfInputChar

public boolean setEndOfInputChar(byte b)
                          throws UnsupportedCommOperationException
Extension to CommAPI This is an extension to CommAPI. It may not be supported on all operating systems.

定義:
クラス SerialPort 内の setEndOfInputChar
パラメータ:
b - End Of Input Character
戻り値:
boolean true on success
例外:
UnsupportedCommOperationException;
UnsupportedCommOperationException

setUARTType

public boolean setUARTType(java.lang.String type,
                           boolean test)
                    throws UnsupportedCommOperationException
Extension to CommAPI This is an extension to CommAPI. It may not be supported on all operating systems.

定義:
クラス SerialPort 内の setUARTType
パラメータ:
type - String representation of the UART type which mayb be "none", "8250", "16450", "16550", "16550A", "16650", "16550V2" or "16750".
test - boolean flag to determin if the UART should be tested.
戻り値:
boolean true on success
例外:
UnsupportedCommOperationException;
UnsupportedCommOperationException

getUARTType

public java.lang.String getUARTType()
                             throws UnsupportedCommOperationException
Extension to CommAPI This is an extension to CommAPI. It may not be supported on all operating systems.

定義:
クラス SerialPort 内の getUARTType
戻り値:
type String representation of the UART type which mayb be "none", "8250", "16450", "16550", "16550A", "16650", "16550V2" or "16750".
例外:
UnsupportedCommOperationException;
UnsupportedCommOperationException

setBaudBase

public boolean setBaudBase(int BaudBase)
                    throws UnsupportedCommOperationException,
                           java.io.IOException
Extension to CommAPI. Set Baud Base to 38600 on Linux and W32 before using.

定義:
クラス SerialPort 内の setBaudBase
パラメータ:
int - BaudBase The clock frequency divided by 16. Default BaudBase is 115200.
戻り値:
boolean true on success
例外:
UnsupportedCommOperationException, - IOException
UnsupportedCommOperationException
java.io.IOException

getBaudBase

public int getBaudBase()
                throws UnsupportedCommOperationException,
                       java.io.IOException
Extension to CommAPI

定義:
クラス SerialPort 内の getBaudBase
戻り値:
int BaudBase
例外:
UnsupportedCommOperationException, - IOException
UnsupportedCommOperationException
java.io.IOException

setDivisor

public boolean setDivisor(int Divisor)
                   throws UnsupportedCommOperationException,
                          java.io.IOException
Extension to CommAPI. Set Baud Base to 38600 on Linux and W32 before using.

定義:
クラス SerialPort 内の setDivisor
パラメータ:
int - Divisor;
例外:
UnsupportedCommOperationException, - IOException
UnsupportedCommOperationException
java.io.IOException

getDivisor

public int getDivisor()
               throws UnsupportedCommOperationException,
                      java.io.IOException
Extension to CommAPI

定義:
クラス SerialPort 内の getDivisor
例外:
UnsupportedCommOperationException, - IOException
UnsupportedCommOperationException
java.io.IOException

setLowLatency

public boolean setLowLatency()
                      throws UnsupportedCommOperationException
Extension to CommAPI returns boolean true on success

定義:
クラス SerialPort 内の setLowLatency
例外:
UnsupportedCommOperationException

getLowLatency

public boolean getLowLatency()
                      throws UnsupportedCommOperationException
Extension to CommAPI returns boolean true on success

定義:
クラス SerialPort 内の getLowLatency
例外:
UnsupportedCommOperationException

setCallOutHangup

public boolean setCallOutHangup(boolean NoHup)
                         throws UnsupportedCommOperationException
Extension to CommAPI returns boolean true on success

定義:
クラス SerialPort 内の setCallOutHangup
例外:
UnsupportedCommOperationException

getCallOutHangup

public boolean getCallOutHangup()
                         throws UnsupportedCommOperationException
Extension to CommAPI returns boolean true on success

定義:
クラス SerialPort 内の getCallOutHangup
例外:
UnsupportedCommOperationException

clearCommInput

public boolean clearCommInput()
                       throws UnsupportedCommOperationException
Extension to CommAPI returns boolean true on success

例外:
UnsupportedCommOperationException