rcx.comm
Interface USBPort
- All Known Implementing Classes:
- LinuxUSBPort, MacUSBPort, Win32USBPort
public interface USBPort
USBPort - implemented by all ports for each platform
- Author:
- Dario Laverde
Copyright 2002 Dario Laverde, under terms of GNU LGPL
open
int open(java.lang.String portname)
throws java.io.IOException
- Throws:
java.io.IOException
close
void close()
available
int available()
throws java.io.IOException
- Throws:
java.io.IOException
read
int read()
throws java.io.IOException
- Throws:
java.io.IOException
read
int read(byte[] byteArray)
throws java.io.IOException
- Throws:
java.io.IOException
read
int read(byte[] byteArray,
int offset,
int len)
throws java.io.IOException
- Throws:
java.io.IOException
write
void write(int b)
throws java.io.IOException
- Throws:
java.io.IOException
write
void write(byte[] byteArray)
throws java.io.IOException
- Throws:
java.io.IOException
write
void write(byte[] byteArray,
int offset,
int len)
throws java.io.IOException
- Throws:
java.io.IOException
getInputStream
java.io.InputStream getInputStream()
throws java.io.IOException
- Throws:
java.io.IOException
getOutputStream
java.io.OutputStream getOutputStream()
throws java.io.IOException
- Throws:
java.io.IOException
enableReceiveThreshold
void enableReceiveThreshold(int i)
disableReceiveThreshold
void disableReceiveThreshold()
isReceiveThresholdEnabled
boolean isReceiveThresholdEnabled()
getReceiveThreshold
int getReceiveThreshold()
enableReceiveTimeout
void enableReceiveTimeout(int timeout)
disableReceiveTimeout
void disableReceiveTimeout()
isReceiveTimeoutEnabled
boolean isReceiveTimeoutEnabled()
getReceiveTimeout
int getReceiveTimeout()
enableReceiveFraming
void enableReceiveFraming(int i)
disableReceiveFraming
void disableReceiveFraming()
isReceiveFramingEnabled
boolean isReceiveFramingEnabled()
getReceiveFramingByte
int getReceiveFramingByte()
setInputBufferSize
void setInputBufferSize(int i)
getInputBufferSize
int getInputBufferSize()
setOutputBufferSize
void setOutputBufferSize(int i)
getOutputBufferSize
int getOutputBufferSize()
getName
java.lang.String getName()
toString
java.lang.String toString()
- Overrides:
toString
in class java.lang.Object