lejos.nxt.comm
Class BTConnection

java.lang.Object
  extended by lejos.nxt.comm.BTConnection
All Implemented Interfaces:
StreamConnection

public class BTConnection
extends Object
implements StreamConnection

Represents a Bluetooth Stream Connection. Currently only used to close a Bluetooth connection, but will be used in a later release to implement input and output streams.


Method Summary
 void close()
          Close the stream connection
 DataInputStream openDataInputStream()
          Open and return a DataInputStream - not yet implemented.
 DataOutputStream openDataOutputStream()
          Open and return a DataOutputStream - not yet implemented.
 InputStream openInputStream()
          Open and return an InputStream - not yet implemented.
 OutputStream openOutputStream()
          Open and return an OutputStream - not yet implemented.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait
 

Method Detail

close

public void close()
           throws IOException
Description copied from interface: StreamConnection
Close the stream connection

Specified by:
close in interface StreamConnection
Throws:
IOException

openDataInputStream

public DataInputStream openDataInputStream()
                                    throws IOException
Description copied from interface: StreamConnection
Open and return a DataInputStream - not yet implemented.

Specified by:
openDataInputStream in interface StreamConnection
Throws:
IOException

openDataOutputStream

public DataOutputStream openDataOutputStream()
                                      throws IOException
Description copied from interface: StreamConnection
Open and return a DataOutputStream - not yet implemented.

Specified by:
openDataOutputStream in interface StreamConnection
Throws:
IOException

openInputStream

public InputStream openInputStream()
                            throws IOException
Description copied from interface: StreamConnection
Open and return an InputStream - not yet implemented.

Specified by:
openInputStream in interface StreamConnection
Throws:
IOException

openOutputStream

public OutputStream openOutputStream()
                              throws IOException
Description copied from interface: StreamConnection
Open and return an OutputStream - not yet implemented.

Specified by:
openOutputStream in interface StreamConnection
Throws:
IOException