119,13 → 119,11 |
* system, then we might have problems putting it in 32-bits. Better safe than sorry. |
*/ |
private int handle; |
/* The input stream that user code uses to read from the serial port. |
*/ |
/* The input stream that user code uses to read from the serial port. */ |
private SerialInputStream inputStream; |
/* The buffered serial input stream which filters out events for us. */ |
private BufferedSerialInputStream bis; |
/* The output stream that user code uses to write to the serial port. |
*/ |
/* The output stream that user code uses to write to the serial port. */ |
private SerialOutputStream outputStream; |
/* Make sure we don't close ourselves twice */ |
private boolean closed; |
197,7 → 195,7 |
* Open the specified port, no flow control |
* |
* @param portName The name of the port to open |
* @param rate The Buad Rate to open this port at |
* @param rate The Baud Rate to open this port at |
* @throws NoSuchPortException If this port does not exist |
* @throws NotASerialPortException If the specified port is not a serial port |
*/ |
209,7 → 207,7 |
* Open the specified port, no flow control |
* |
* @param portName The name of the port to open |
* @param rate The Buad Rate to open this port at |
* @param rate The Baud Rate to open this port at |
* @param data The number of data bits |
* @throws NoSuchPortException If this port does not exist |
* @throws NotASerialPortException If the specified port is not a serial port |
222,7 → 220,7 |
* Open the specified port, no parity or flow control |
* |
* @param portName The name of the port to open |
* @param rate The Buad Rate to open this port at |
* @param rate The Baud Rate to open this port at |
* @param data The number of data bits |
* @param stop The number of stop bits |
* @throws NoSuchPortException If this port does not exist |
236,7 → 234,7 |
* Open the specified port, no flow control |
* |
* @param portName The name of the port to open |
* @param rate The Buad Rate to open this port at |
* @param rate The Baud Rate to open this port at |
* @param data The number of data bits |
* @param stop The number of stop bits |
* @param parity The parity of the line |
773,4 → 771,38 |
*/ |
private native int setSerialLineStateInternal( SerialLineState s ); |
|
// |
// Static Methods |
// |
|
/** |
* Get the major version of this library. For example, if this is version |
* 0.2, this returns 0 |
*/ |
public static int getMajorVersion(){ |
return 0; |
} |
|
/** |
* Get the minor version of this library. For example, if this is version |
* 0.2, this returns 2. |
*/ |
public static int getMinorVersion(){ |
return 2; |
} |
|
/** |
* Get the major version of the native code. This should match up with |
* {@link getMajorVersion() getMajorVersion()}, although this is not |
* guaranteed. For example, if this is version 0.2, this returns 0 |
*/ |
public static native int getMajorNativeVersion(); |
|
/** |
* Get the minor version of the native code. This should match up with |
* {@link getMinorVersion() getMinorVersion()}, although this is not |
* guaranteed. For example, if this is version 0.2, this returns 2. |
*/ |
public static native int getMinorNativeVersion(); |
|
} |