|
||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectgnu.io.CommPort
gnu.io.RawPort
gnu.io.Raw
final class Raw
入れ子のクラスの概要 | |
---|---|
(package private) class |
Raw.MonitorThread
|
(package private) class |
Raw.RawInputStream
Inner class for RawInputStream |
(package private) class |
Raw.RawOutputStream
Inner class for RawOutputStream |
フィールドの概要 | |
---|---|
private int |
ciAddress
File descriptor |
private int |
dataAvailable
|
private int |
dataBits
Data bits port parameter |
(package private) static boolean |
dsrFlag
DSR flag |
private int |
flowmode
Flow control |
private Raw.RawInputStream |
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... |
private Raw.MonitorThread |
monThread
Thread to monitor data |
private Raw.RawOutputStream |
out
Output stream |
private int |
OutputBuffer
|
private int |
parity
Parity port parameter |
private int |
speed
Line speed in bits-per-second |
private RawPortEventListener |
SPEventListener
Raw Port Event listener |
private int |
stopBits
Stop bits port parameter |
private int |
threshold
Receive threshold control |
private int |
timeout
Receive timeout control |
クラス gnu.io.CommPort から継承されたフィールド |
---|
name |
コンストラクタの概要 | |
---|---|
Raw(java.lang.String name)
Open the named port |
メソッドの概要 | |
---|---|
void |
addEventListener(RawPortEventListener lsnr)
Add an event listener |
void |
close()
|
void |
disableReceiveFraming()
|
void |
disableReceiveThreshold()
|
void |
disableReceiveTimeout()
|
private void |
drain()
|
void |
enableReceiveFraming(int f)
Receive framing control |
void |
enableReceiveThreshold(int thresh)
|
void |
enableReceiveTimeout(int time)
|
(package private) void |
eventLoop()
Process RawPortEvents |
protected void |
finalize()
Finalize the port |
int |
getBaudRate()
|
int |
getDataBits()
|
int |
getFlowControlMode()
|
int |
getInputBufferSize()
|
java.io.InputStream |
getInputStream()
|
int |
getOutputBufferSize()
|
java.io.OutputStream |
getOutputStream()
|
int |
getParity()
|
int |
getReceiveFramingByte()
|
int |
getReceiveThreshold()
|
int |
getReceiveTimeout()
|
int |
getStopBits()
|
java.lang.String |
getVersion()
|
private static void |
Initialize()
Initialize the native library |
boolean |
isCD()
|
boolean |
isCTS()
|
boolean |
isDSR()
|
boolean |
isDTR()
Line status methods |
boolean |
isReceiveFramingEnabled()
|
boolean |
isReceiveThresholdEnabled()
|
boolean |
isReceiveTimeoutEnabled()
|
boolean |
isRI()
|
boolean |
isRTS()
|
private int |
nativeavailable()
Raw read methods |
private int |
nativeClose()
Close the port |
void |
NativeEnableReceiveTimeoutThreshold(int time,
int threshold,
int InputBuffer)
|
int |
NativegetReceiveTimeout()
|
boolean |
NativeisReceiveTimeoutEnabled()
|
private void |
nativeSetRawPortParams(int speed,
int dataBits,
int stopBits,
int parity)
Set the native Raw port parameters |
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(int ciAddress)
|
private int |
readArray(byte[] b,
int off,
int len)
|
private int |
readByte()
|
void |
removeEventListener()
Remove the Raw port event listener |
void |
sendBreak(int duration)
Write to the port |
void |
sendEvent(int event,
boolean state)
|
private void |
setDSR(boolean state)
|
void |
setDTR(boolean state)
|
(package private) void |
setflowcontrol(int flowcontrol)
|
void |
setFlowControlMode(int flowcontrol)
|
void |
setInputBufferSize(int size)
|
void |
setOutputBufferSize(int size)
|
void |
setRawPortParams(int b,
int d,
int s,
int p)
Set the RawPort parameters |
void |
setRTS(boolean state)
|
private void |
writeArray(byte[] b,
int off,
int len)
|
private void |
writeByte(int b)
|
クラス gnu.io.CommPort から継承されたメソッド |
---|
getName, toString |
クラス java.lang.Object から継承されたメソッド |
---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
フィールドの詳細 |
---|
private int ciAddress
static boolean dsrFlag
private final Raw.RawOutputStream out
private final Raw.RawInputStream in
private int speed
private int dataBits
private int stopBits
private int parity
private int flowmode
private int timeout
private int threshold
private int InputBuffer
private int OutputBuffer
private RawPortEventListener SPEventListener
private Raw.MonitorThread monThread
private int dataAvailable
コンストラクタの詳細 |
---|
public Raw(java.lang.String name) throws PortInUseException
PortInUseException
メソッドの詳細 |
---|
private static void Initialize()
private int open(int ciAddress) throws PortInUseException
PortInUseException
public java.io.OutputStream getOutputStream()
CommPort
内の getOutputStream
public java.io.InputStream getInputStream()
CommPort
内の getInputStream
public void setRawPortParams(int b, int d, int s, int p) throws UnsupportedCommOperationException
RawPort
内の setRawPortParams
UnsupportedCommOperationException
private void nativeSetRawPortParams(int speed, int dataBits, int stopBits, int parity) throws UnsupportedCommOperationException
UnsupportedCommOperationException
public int getBaudRate()
public int getDataBits()
public int getStopBits()
public int getParity()
public void setFlowControlMode(int flowcontrol)
public int getFlowControlMode()
void setflowcontrol(int flowcontrol) throws java.io.IOException
java.io.IOException
public void enableReceiveFraming(int f) throws UnsupportedCommOperationException
CommPort
内の enableReceiveFraming
UnsupportedCommOperationException
public void disableReceiveFraming()
CommPort
内の disableReceiveFraming
public boolean isReceiveFramingEnabled()
CommPort
内の isReceiveFramingEnabled
public int getReceiveFramingByte()
CommPort
内の getReceiveFramingByte
public int NativegetReceiveTimeout()
public boolean NativeisReceiveTimeoutEnabled()
public void NativeEnableReceiveTimeoutThreshold(int time, int threshold, int InputBuffer)
public void disableReceiveTimeout()
CommPort
内の disableReceiveTimeout
public void enableReceiveTimeout(int time)
CommPort
内の enableReceiveTimeout
public boolean isReceiveTimeoutEnabled()
CommPort
内の isReceiveTimeoutEnabled
public int getReceiveTimeout()
CommPort
内の getReceiveTimeout
public void enableReceiveThreshold(int thresh)
CommPort
内の enableReceiveThreshold
public void disableReceiveThreshold()
CommPort
内の disableReceiveThreshold
public int getReceiveThreshold()
CommPort
内の getReceiveThreshold
public boolean isReceiveThresholdEnabled()
CommPort
内の isReceiveThresholdEnabled
public void setInputBufferSize(int size)
CommPort
内の setInputBufferSize
public int getInputBufferSize()
CommPort
内の getInputBufferSize
public void setOutputBufferSize(int size)
CommPort
内の setOutputBufferSize
public int getOutputBufferSize()
CommPort
内の getOutputBufferSize
public boolean isDTR()
public void setDTR(boolean state)
public void setRTS(boolean state)
private void setDSR(boolean state)
public boolean isCTS()
public boolean isDSR()
public boolean isCD()
public boolean isRI()
public boolean isRTS()
public void sendBreak(int duration)
private void writeByte(int b) throws java.io.IOException
java.io.IOException
private void writeArray(byte[] b, int off, int len) throws java.io.IOException
java.io.IOException
private void drain() throws java.io.IOException
java.io.IOException
private int nativeavailable() throws java.io.IOException
java.io.IOException
private int readByte() throws java.io.IOException
java.io.IOException
private int readArray(byte[] b, int off, int len) throws java.io.IOException
java.io.IOException
void eventLoop()
public void sendEvent(int event, boolean state)
public void addEventListener(RawPortEventListener lsnr) throws java.util.TooManyListenersException
RawPort
内の addEventListener
java.util.TooManyListenersException
public void removeEventListener()
RawPort
内の removeEventListener
public void notifyOnDataAvailable(boolean enable)
public void notifyOnOutputEmpty(boolean enable)
public void notifyOnCTS(boolean enable)
public void notifyOnDSR(boolean enable)
public void notifyOnRingIndicator(boolean enable)
public void notifyOnCarrierDetect(boolean enable)
public void notifyOnOverrunError(boolean enable)
public void notifyOnParityError(boolean enable)
public void notifyOnFramingError(boolean enable)
public void notifyOnBreakInterrupt(boolean enable)
private int nativeClose()
public void close()
CommPort
内の close
protected void finalize()
java.lang.Object
内の finalize
public java.lang.String getVersion()
|
||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |