get sorted array of serial ports in the system using default settings : search path windows - '' '' always ignored linux - '' / dev / '' solaris - '' / dev/term / '' macosx - '' / dev / '' regexp windows - '' '' linux - '' ttys | ttyusb | ttyacm | ttyama | rfcomm 0-9 1,3 '' solaris - '' 0-9 | a-z '' macosx - `` tty . serial | usbserial | usbmodem . '' concode_field_sep String PORTNAMES_PATH concode_elem_sep Comparator<String> PORTNAMES_COMPARATOR concode_elem_sep SerialNativeInterface serialInterface concode_elem_sep Pattern PORTNAMES_REGEXP concode_field_sep String[] getWindowsPortNames concode_elem_sep int compare concode_elem_sep String[] getUnixBasedPortNames concode_elem_sep int[] getNumberAndLastIndex
String [ ] function ( ) { return getPortNames ( PORTNAMES_PATH , PORTNAMES_REGEXP , PORTNAMES_COMPARATOR ) ; }