com.scottpreston.javarobot.chapter2
Interface JSerialPort

All Known Implementing Classes:
StandardSerialPort, WebSerialClient

public interface JSerialPort


Field Summary
static java.lang.String READ_COMMAND
           
static java.lang.String WRITE_COMMAND
           
static java.lang.String WRITE_READ_COMMAND
           
 
Method Summary
 void close()
           
 byte[] read()
           
 byte[] read(byte[] b)
           
 java.lang.String readString()
           
 java.lang.String readString(byte[] b)
           
 void setDTR(boolean dtr)
           
 void setTimeout(int tOut)
           
 void write(byte[] b)
           
 

Field Detail

READ_COMMAND

static final java.lang.String READ_COMMAND
See Also:
Constant Field Values

WRITE_COMMAND

static final java.lang.String WRITE_COMMAND
See Also:
Constant Field Values

WRITE_READ_COMMAND

static final java.lang.String WRITE_READ_COMMAND
See Also:
Constant Field Values
Method Detail

read

byte[] read()

readString

java.lang.String readString()

write

void write(byte[] b)
           throws java.lang.Exception
Throws:
java.lang.Exception

close

void close()

setDTR

void setDTR(boolean dtr)

setTimeout

void setTimeout(int tOut)

read

byte[] read(byte[] b)
            throws java.lang.Exception
Throws:
java.lang.Exception

readString

java.lang.String readString(byte[] b)
                            throws java.lang.Exception
Throws:
java.lang.Exception