Skip to content

Commit 043deb3

Browse files
committed
Updated documentation
1 parent 5989b41 commit 043deb3

2 files changed

Lines changed: 8 additions & 6 deletions

File tree

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ The easiest way is to use [Apache Maven]( http://maven.apache.org/ ), and add it
2222
<dependency>
2323
<groupId>com.rm5248</groupId>
2424
<artifactId>JavaSerial</artifactId>
25-
<version>0.7</version>
25+
<version>0.9</version>
2626
</dependency>
2727
```
2828
However, you may also download the JARs and add them manually to your project if you so desire. The latest versions may be downloaded [here]( http://programming.rm5248.com/releases/JavaSerial/latest/ ). No other dependencies are required.
@@ -44,6 +44,8 @@ public class SerialTest {
4444
System.err.println( "Oh no! That port doesn't exist!" );
4545
} catch (NotASerialPortException e) {
4646
System.err.println( "Oh no! That's not a serial port!" );
47+
} catch (IOException e) {
48+
System.err.println( "An IOException occured" );
4749
}
4850

4951
}
@@ -94,5 +96,5 @@ Advantages of JavaSerial:
9496
* No external dependencies
9597

9698
Disadvantages of JavaSerial:
97-
* No locking of the serial port - There's no portable way to do this, so any locking done will be on the Java side. This is a consequence of being rather low-level.
99+
* No locking of the serial port - There's no portable way to do this, so any locking done will be on the Java side. This is a consequence of being rather simple, and as such it not a primary focus of the library.
98100
* ???

src/com/rm5248/serial/SerialPort.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@
5050
*
5151
* <p>
5252
*
53-
* <pre>
54-
* com.rm5248.javaserial.lib.path - give the directory name that the JNI code is
55-
* located in com.rm5248.javaserial.lib.name - explicitly give the name of the
53+
* {@code com.rm5248.javaserial.lib.path} - give the directory name that the JNI code is
54+
* located in <br/>
55+
* {@code com.rm5248.javaserial.lib.name} - explicitly give the name of the
5656
* library(the default is 'javaserial')
5757
* </pre>
5858
*
@@ -1328,7 +1328,7 @@ public static int getMinorVersion(){
13281328
* Get an array of all the serial ports on the system. For example, on
13291329
* Windows this will return {@code { "COM1", "COM3", .... } } depending on
13301330
* how many serial devices you have plugged in. On Linux, this returns
1331-
* {@code { "/dev/ttyS0", "/dev/ttyUSB0", "/dev/symlink", ... } }
1331+
* {@code { "/dev/ttyS0", "/dev/ttyUSB0", "/dev/symlink", ... } }
13321332
* It will not resolve symlinks, such that if there is a symlink from {@code /dev/symlink
13331333
* } to {@code /dev/ttyUSB0 }, they will both show up.
13341334
* </p>

0 commit comments

Comments
 (0)