org.halfdog.io.parport
Class WindowsParPort
java.lang.Object
org.halfdog.io.parport.ParPort
org.halfdog.io.parport.WindowsParPort
- public class WindowsParPort
- extends ParPort
Just pass the calls to the underlying java native library
Fields inherited from class org.halfdog.io.parport.ParPort |
CTRL_AUTOFEED, CTRL_DIRECTION, CTRL_INIT, CTRL_INVERT, CTRL_SELECT, CTRL_STROBE, PPORT_RDATA, PPORT_RSTATUS, PPORT_SEQUENCE, PPORT_WCTRL, PPORT_WDATA, STATUS_ACKN, STATUS_BUSY, STATUS_ERROR, STATUS_INVERT, STATUS_NOPAPER, STATUS_SELECT |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WindowsParPort
public WindowsParPort(int baseport)
throws java.io.IOException
read
public byte read()
throws java.io.IOException
- Specified by:
read
in class ParPort
- Throws:
java.io.IOException
write
public void write(byte b)
throws java.io.IOException
- Specified by:
write
in class ParPort
- Throws:
java.io.IOException
readStatus
public byte readStatus()
throws java.io.IOException
- Specified by:
readStatus
in class ParPort
- Throws:
java.io.IOException
writeControl
public void writeControl(byte b)
throws java.io.IOException
- Specified by:
writeControl
in class ParPort
- Throws:
java.io.IOException
createSequence
public Sequence createSequence()
- Specified by:
createSequence
in class ParPort
doSequence
public byte[] doSequence(Sequence seq)
throws java.io.IOException
- Execute a sequence. This feature is used to execute timing
critical commands in a very fast way.
- Specified by:
doSequence
in class ParPort
- Throws:
java.io.IOException