Package jtermios.solaris
Class JTermiosImpl
- java.lang.Object
-
- jtermios.solaris.JTermiosImpl
-
- All Implemented Interfaces:
JTermios.JTermiosInterface
public class JTermiosImpl extends Object implements JTermios.JTermiosInterface
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceJTermiosImpl.C_libstatic classJTermiosImpl.C_lib_DirectMappingstatic classJTermiosImpl.fd_setstatic interfaceJTermiosImpl.NonDirectCLibstatic classJTermiosImpl.pollfdstatic classJTermiosImpl.termiosstatic classJTermiosImpl.timeval-
Nested classes/interfaces inherited from interface jtermios.JTermios.JTermiosInterface
JTermios.JTermiosInterface.NativeSize
-
-
Constructor Summary
Constructors Constructor Description JTermiosImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanPoll()poll() on Windows has not been implemented and while implemented on Mac OS X, does not work for devices.intcfgetispeed(Termios termios)intcfgetospeed(Termios termios)voidcfmakeraw(Termios termios)intcfsetispeed(Termios termios, int speed)intcfsetospeed(Termios termios, int speed)intclose(int fd)interrno()intfcntl(int fd, int cmd, int arg)List<String>getPortList()StringgetPortNamePattern()intioctl(int fd, int cmd, int... data)JTermios.FDSetnewFDSet()intopen(String s, int t)voidperror(String msg)intpipe(int[] fds)intpoll(Pollfd[] fds, int nfds, int timeout)intread(int fd, byte[] buffer, int len)intselect(int nfds, JTermios.FDSet rfds, JTermios.FDSet wfds, JTermios.FDSet efds, TimeVal timeout)intsetspeed(int fd, Termios termios, int speed)voidshutDown()inttcdrain(int fd)inttcflush(int fd, int b)inttcgetattr(int fd, Termios termios)inttcsendbreak(int fd, int duration)inttcsetattr(int fd, int cmd, Termios termios)intwrite(int fd, byte[] buffer, int len)
-
-
-
Method Detail
-
errno
public int errno()
- Specified by:
errnoin interfaceJTermios.JTermiosInterface
-
cfmakeraw
public void cfmakeraw(Termios termios)
- Specified by:
cfmakerawin interfaceJTermios.JTermiosInterface
-
fcntl
public int fcntl(int fd, int cmd, int arg)- Specified by:
fcntlin interfaceJTermios.JTermiosInterface
-
tcdrain
public int tcdrain(int fd)
- Specified by:
tcdrainin interfaceJTermios.JTermiosInterface
-
cfgetispeed
public int cfgetispeed(Termios termios)
- Specified by:
cfgetispeedin interfaceJTermios.JTermiosInterface
-
cfgetospeed
public int cfgetospeed(Termios termios)
- Specified by:
cfgetospeedin interfaceJTermios.JTermiosInterface
-
cfsetispeed
public int cfsetispeed(Termios termios, int speed)
- Specified by:
cfsetispeedin interfaceJTermios.JTermiosInterface
-
cfsetospeed
public int cfsetospeed(Termios termios, int speed)
- Specified by:
cfsetospeedin interfaceJTermios.JTermiosInterface
-
open
public int open(String s, int t)
- Specified by:
openin interfaceJTermios.JTermiosInterface
-
read
public int read(int fd, byte[] buffer, int len)- Specified by:
readin interfaceJTermios.JTermiosInterface
-
write
public int write(int fd, byte[] buffer, int len)- Specified by:
writein interfaceJTermios.JTermiosInterface
-
close
public int close(int fd)
- Specified by:
closein interfaceJTermios.JTermiosInterface
-
tcflush
public int tcflush(int fd, int b)- Specified by:
tcflushin interfaceJTermios.JTermiosInterface
-
tcgetattr
public int tcgetattr(int fd, Termios termios)- Specified by:
tcgetattrin interfaceJTermios.JTermiosInterface
-
perror
public void perror(String msg)
- Specified by:
perrorin interfaceJTermios.JTermiosInterface
-
tcsendbreak
public int tcsendbreak(int fd, int duration)- Specified by:
tcsendbreakin interfaceJTermios.JTermiosInterface
-
tcsetattr
public int tcsetattr(int fd, int cmd, Termios termios)- Specified by:
tcsetattrin interfaceJTermios.JTermiosInterface
-
select
public int select(int nfds, JTermios.FDSet rfds, JTermios.FDSet wfds, JTermios.FDSet efds, TimeVal timeout)- Specified by:
selectin interfaceJTermios.JTermiosInterface
-
poll
public int poll(Pollfd[] fds, int nfds, int timeout)
- Specified by:
pollin interfaceJTermios.JTermiosInterface
-
canPoll
public boolean canPoll()
Description copied from interface:JTermios.JTermiosInterfacepoll() on Windows has not been implemented and while implemented on Mac OS X, does not work for devices.- Specified by:
canPollin interfaceJTermios.JTermiosInterface
-
newFDSet
public JTermios.FDSet newFDSet()
- Specified by:
newFDSetin interfaceJTermios.JTermiosInterface
-
ioctl
public int ioctl(int fd, int cmd, int... data)- Specified by:
ioctlin interfaceJTermios.JTermiosInterface
-
getPortNamePattern
public String getPortNamePattern()
- Specified by:
getPortNamePatternin interfaceJTermios.JTermiosInterface
-
getPortList
public List<String> getPortList()
- Specified by:
getPortListin interfaceJTermios.JTermiosInterface
-
shutDown
public void shutDown()
- Specified by:
shutDownin interfaceJTermios.JTermiosInterface
-
setspeed
public int setspeed(int fd, Termios termios, int speed)- Specified by:
setspeedin interfaceJTermios.JTermiosInterface
-
pipe
public int pipe(int[] fds)
- Specified by:
pipein interfaceJTermios.JTermiosInterface
-
-