waba.io
Class InfraRed

java.lang.Object
  |
  +--waba.io.Stream
        |
        +--waba.io.InfraRed

public class InfraRed
extends Stream


Constructor Summary
InfraRed(int iBaudRate)
           
 
Method Summary
 boolean close()
          Closes the stream.
 boolean isOpen()
           
 int readBytes(byte[] buf, int start, int count)
          Reads bytes from the stream.
 int readCheck()
           
 boolean setFlowControl(boolean on)
           
 boolean setReadTimeout(int millis)
           
 int writeBytes(byte[] buf, int start, int count)
          Writes bytes to the the stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InfraRed

public InfraRed(int iBaudRate)
Method Detail

close

public boolean close()
Description copied from class: Stream
Closes the stream. Returns true if the operation is successful and false otherwise.
Overrides:
close in class Stream

isOpen

public boolean isOpen()

setFlowControl

public boolean setFlowControl(boolean on)

setReadTimeout

public boolean setReadTimeout(int millis)

readBytes

public int readBytes(byte[] buf,
                     int start,
                     int count)
Description copied from class: Stream
Reads bytes from the stream. Returns the number of bytes actually read or -1 if an error prevented the read operation from occurring.
Overrides:
readBytes in class Stream
Tags copied from class: Stream
Parameters:
buf - the byte array to read data into
start - the start position in the array
count - the number of bytes to read

writeBytes

public int writeBytes(byte[] buf,
                      int start,
                      int count)
Description copied from class: Stream
Writes bytes to the the stream. Returns the number of bytes actually written or -1 if an error prevented the write operation from occurring.
Overrides:
writeBytes in class Stream
Tags copied from class: Stream
Parameters:
buf - the byte array to write data from
start - the start position in the byte array
count - the number of bytes to write

readCheck

public int readCheck()