Sun SPOT API
Green Release  


com.sun.spot.peripheral.radio
Class SerialPipe

java.lang.Object
  extended by com.sun.spot.peripheral.radio.SerialPipe
All Implemented Interfaces:
ISerialPipe

public class SerialPipe
extends Object
implements ISerialPipe


Constructor Summary
SerialPipe()
           
 
Method Summary
 void receive(byte[] in)
          Receive a byte array of data
 void send(byte[] out)
          Send a byte array of data
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SerialPipe

public SerialPipe()
           throws IOException
Throws:
IOException
Method Detail

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

Sun SPOT API
Green Release  


Copyright © 2006 Sun Microsystems, Inc. All Rights Reserved.