waba.io
Class InfraRed
java.lang.Object
|
+--waba.io.Stream
|
+--waba.io.InfraRed
- public class InfraRed
- extends Stream
Constructor Summary |
InfraRed(int iBaudRate)
|
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
InfraRed
public InfraRed(int iBaudRate)
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 intostart
- the start position in the arraycount
- 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 fromstart
- the start position in the byte arraycount
- the number of bytes to write
readCheck
public int readCheck()