org.halfdog.io.parport
Class WindowsParPort

java.lang.Object
  extended byorg.halfdog.io.parport.ParPort
      extended byorg.halfdog.io.parport.WindowsParPort

public class WindowsParPort
extends ParPort

Just pass the calls to the underlying java native library


Field Summary
 
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
 
Constructor Summary
WindowsParPort(int baseport)
           
 
Method Summary
 Sequence createSequence()
           
 byte[] doSequence(Sequence seq)
          Execute a sequence.
 byte read()
           
 byte readStatus()
           
 void write(byte b)
           
 void writeControl(byte b)
           
 
Methods inherited from class org.halfdog.io.parport.ParPort
createPort
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WindowsParPort

public WindowsParPort(int baseport)
               throws java.io.IOException
Method Detail

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