com.sun.spot.peripheral.radio
Class SerialPipe
java.lang.Object
com.sun.spot.peripheral.radio.SerialPipe
- All Implemented Interfaces:
- ISerialPipe
public class SerialPipe
- extends Object
- implements ISerialPipe
|
Method Summary |
void |
receive(byte[] in)
Receive a byte array of data |
void |
send(byte[] out)
Send a byte array of data |
SerialPipe
public SerialPipe()
throws IOException
- Throws:
IOException
receive
public void receive(byte[] in)
throws IOException
- Description copied from interface:
ISerialPipe
- Receive a byte array of data
- Specified by:
receive in interface ISerialPipe
- Parameters:
in - byte array in which to store received data
- Throws:
IOException - to indicate framing or overrun errors
send
public void send(byte[] out)
throws IOException
- Description copied from interface:
ISerialPipe
- Send a byte array of data
- Specified by:
send in interface ISerialPipe
- Parameters:
out - byte array holding data to be sent
- Throws:
IOException
Copyright © 2006 Sun Microsystems, Inc. All Rights Reserved.