Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## lejos.nxt.comm
Interface NXTConnection

All Superinterfaces:
  Connection, InputConnection, OutputConnection, StreamConnection

All Known Implementing Classes:
  BTConnection, USBConnection

    public interface NXTConnection

extends StreamConnection

Generic lejos nxt connection inetrface. Provide access to standard read/write methods.

Author:
  andy

Method Summary
`int` | `read(byte[] data, int len)`
`int` | `read(byte[] data, int len, boolean wait)`
`int` | `write(byte[] data, int len)`
`int` | `write(byte[] data, int len, boolean wait)`

Methods inherited from interface javax.microedition.io.InputConnection
`openDataInputStream, openInputStream`

Methods inherited from interface javax.microedition.io.Connection
`close`

Methods inherited from interface javax.microedition.io.OutputConnection
`openDataOutputStream, openOutputStream`

Methods inherited from interface javax.microedition.io.Connection
`close`

Method Detail

### read

    int read(byte[] data,
             int len)

### write

    int write(byte[] data,
              int len)

### read

    int read(byte[] data,
             int len,
             boolean wait)

### write

    int write(byte[] data,
              int len,
              boolean wait)

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD